mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
adding support for multiple records in Helper::value()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6024 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
31fac597bd
commit
a215688e87
1 changed files with 2 additions and 0 deletions
|
@ -546,6 +546,8 @@ class Helper extends Overloadable {
|
|||
$model =& ClassRegistry::getObject($this->field());
|
||||
$result = $this->__selectedArray($this->data[$this->field()], $model->primaryKey);
|
||||
}
|
||||
} elseif (isset($this->data[$this->model()][$this->modelID()][$this->field()])) {
|
||||
$result = $this->data[$this->model()][$this->modelID()][$this->field()];
|
||||
}
|
||||
|
||||
if (is_array($options)) {
|
||||
|
|
Loading…
Reference in a new issue