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:
phpnut 2007-06-20 03:14:54 +00:00
parent 902c6fa173
commit 3ea80f7618

View file

@ -229,8 +229,6 @@ class TranslateBehavior extends ModelBehavior {
if(isset($model->data[$model->name][$field])) {
$tempData[$field] = $model->data[$model->name][$field];
unset($model->data[$model->name][$field]);
} else {
$tempData[$field] = '';
}
}
$this->runtime[$model->name]['beforeSave'] = $tempData;