updating scope in Helper::setEntity()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5980 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-11-12 00:43:38 +00:00
parent b867f832c1
commit 25252e678a

View file

@ -134,7 +134,7 @@ class FormHelper extends AppHelper {
'validates' => (ife(empty($object->validate), array(), array_keys($object->validate)))
);
}
if (isset($this->data[$model]) && isset($this->data[$model][$data['key']]) && !empty($this->data[$model][$data['key']])) {
$created = true;
$id = $this->data[$model][$data['key']];
@ -512,7 +512,7 @@ class FormHelper extends AppHelper {
}
}
}
if ($this->model() === $this->field()) {
$options['type'] = 'select';
$options['multiple'] = 'multiple';