mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Adding patch from Ticket #2642, fixes TranslateBehavior doesn't work with Model::saveField()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5307 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
902c6fa173
commit
3ea80f7618
1 changed files with 0 additions and 2 deletions
|
@ -229,8 +229,6 @@ class TranslateBehavior extends ModelBehavior {
|
||||||
if(isset($model->data[$model->name][$field])) {
|
if(isset($model->data[$model->name][$field])) {
|
||||||
$tempData[$field] = $model->data[$model->name][$field];
|
$tempData[$field] = $model->data[$model->name][$field];
|
||||||
unset($model->data[$model->name][$field]);
|
unset($model->data[$model->name][$field]);
|
||||||
} else {
|
|
||||||
$tempData[$field] = '';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->runtime[$model->name]['beforeSave'] = $tempData;
|
$this->runtime[$model->name]['beforeSave'] = $tempData;
|
||||||
|
|
Loading…
Add table
Reference in a new issue