mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-12 20:49:50 +00:00
"Fixes #3772, getting errors using treebehavior and translatebehavior on the same model"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6268 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
c5ff7cb4db
commit
ebe356d3b1
1 changed files with 3 additions and 1 deletions
|
@ -160,7 +160,9 @@ class TranslateBehavior extends ModelBehavior {
|
|||
}
|
||||
}
|
||||
}
|
||||
$query['fields'] = array_merge($query['fields']);
|
||||
if (is_array($query['fields'])) {
|
||||
$query['fields'] = array_merge($query['fields']);
|
||||
}
|
||||
$this->runtime[$model->alias]['beforeFind'] = $addFields;
|
||||
return $query;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue