mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
b867f832c1
commit
25252e678a
1 changed files with 2 additions and 2 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue