Skip to content

Commit

Permalink
Fix completeArray() for pass params.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jul 12, 2020
1 parent 85c52de commit 26f4a11
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/View/Helper/UrlHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function resetArray(array $url) {
*/
public function completeArray(array $url) {
$url = $this->addQueryStrings($url);
$url = $this->addPassed($url);

return $url;
}
Expand Down Expand Up @@ -104,4 +105,16 @@ protected function addQueryStrings(array $url) {
return $url;
}

/**
* @param array $url
*
* @return array
*/
protected function addPassed(array $url) {
$pass = $this->_View->getRequest()->getParam('pass');
$url = array_merge($url, $pass);

return $url;
}

}

0 comments on commit 26f4a11

Please sign in to comment.