Skip to content

Commit

Permalink
Fixing faulty code under PHP 7
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Feb 22, 2016
1 parent 2caf719 commit 36729b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/View/Helper/CrudViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ public function relation($field)
$entity = $data->$entityName;
return [
'alias' => $alias,
'output' => $this->Html->link($entity->$details['displayField'], [
'output' => $this->Html->link($entity->{$details['displayField']}, [
'controller' => $details['controller'],
'action' => 'view',
$entity->$details['primaryKey']
$entity->{$details['primaryKey']}
])
];
}
Expand Down

0 comments on commit 36729b4

Please sign in to comment.