From 5e11e1490b1e2360fb2afbe824db59aca0bf3e8f Mon Sep 17 00:00:00 2001 From: AD7six Date: Wed, 27 Aug 2008 14:05:58 +0000 Subject: [PATCH] fixes #5339 incorrect bracketting for bindModel statement in tree behavior recover method. removing the actsAs key git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7526 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/model/behaviors/tree.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cake/libs/model/behaviors/tree.php b/cake/libs/model/behaviors/tree.php index a1c06b52a..6382e7b59 100644 --- a/cake/libs/model/behaviors/tree.php +++ b/cake/libs/model/behaviors/tree.php @@ -540,8 +540,7 @@ class TreeBehavior extends ModelBehavior { $model->bindModel(array('belongsTo' => array('VerifyParent' => array( 'className' => $model->alias, 'foreignKey' => $parent, - 'fields' => array($model->primaryKey, $left, $right, $parent, - 'actsAs' => '') + 'fields' => array($model->primaryKey, $left, $right, $parent), )))); $missingParents = $model->find('list', array( 'recursive' => 0,