Skip to content

Commit

Permalink
Change access to deprecated property CrudViewHelper::$request
Browse files Browse the repository at this point in the history
  • Loading branch information
jadb committed Feb 6, 2019
1 parent 337c50d commit cb1d564
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/View/Helper/CrudViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public function relation($field)
*/
public function redirectUrl()
{
$redirectUrl = $this->request->getQuery('_redirect_url');
$redirectUrl = $this->getView()->getRequest()->getQuery('_redirect_url');
$redirectUrlViewVar = $this->getViewVar('_redirect_url');

if (!empty($redirectUrlViewVar)) {
Expand Down Expand Up @@ -351,7 +351,7 @@ public function createRelationLink($alias, $relation, $options = [])
'action' => 'add',
'?' => [
$relation['foreignKey'] => $this->getViewVar('primaryKeyValue'),
'_redirect_url' => $this->request->getUri()->getPath()
'_redirect_url' => $this->getView()->getRequest()->getUri()->getPath()
]
],
$options
Expand Down Expand Up @@ -432,7 +432,7 @@ public function getViewVar($key = null)
*/
public function getCssClasses()
{
$action = (string)$this->request->getParam('action');
$action = (string)$this->getView()->getRequest()->getParam('action');
$pluralVar = $this->getViewVar('pluralVar');
$viewClasses = (array)$this->getViewVar('viewClasses');
$args = func_get_args();
Expand Down

0 comments on commit cb1d564

Please sign in to comment.