Skip to content

Commit

Permalink
Fix viewVar dereference for Cake 4 (NOJIRA)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Sep 30, 2021
1 parent f735b11 commit b1fb687
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ protected function setMatchgrid() {
} else {
// We already have the primary link object in a viewvar

$plObj = $this->viewVars['vv_primary_link_obj'];
$ViewBuilder = $this->viewBuilder();
$plObj = $ViewBuilder->getVar('vv_primary_link_obj');

if(!empty($plObj->matchgrid_id)) {
$mgid = $plObj->matchgrid_id;
Expand Down

0 comments on commit b1fb687

Please sign in to comment.