mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
ensure both node() and afterSave() use ->name
This commit is contained in:
parent
e05c6cd83f
commit
8c277b5612
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class AclBehavior extends ModelBehavior {
|
|||
}
|
||||
$data = array(
|
||||
'parent_id' => isset($parent[0][$type]['id']) ? $parent[0][$type]['id'] : null,
|
||||
'model' => $model->alias,
|
||||
'model' => $model->name,
|
||||
'foreign_key' => $model->id
|
||||
);
|
||||
if (!$created) {
|
||||
|
|
Loading…
Reference in a new issue