Skip to content

Commit

Permalink
ensure both node() and afterSave() use ->name
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Feb 28, 2011
1 parent e05c6cd commit 8c277b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/model/behaviors/acl.php
Expand Up @@ -96,7 +96,7 @@ function afterSave(&$model, $created) {
} }
$data = array( $data = array(
'parent_id' => isset($parent[0][$type]['id']) ? $parent[0][$type]['id'] : null, 'parent_id' => isset($parent[0][$type]['id']) ? $parent[0][$type]['id'] : null,
'model' => $model->alias, 'model' => $model->name,
'foreign_key' => $model->id 'foreign_key' => $model->id
); );
if (!$created) { if (!$created) {
Expand Down

0 comments on commit 8c277b5

Please sign in to comment.