Skip to content
Permalink
Browse files

#4636 - Added support of Traversable objects as options magically fet…

…ched from view by FormHelper
  • Loading branch information...
alaxos committed Sep 17, 2014
1 parent cca12c5 commit 9a075ac4d27e7b65b15a5e647f8e9945b08b3ae5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/View/Helper/FormHelper.php
@@ -1078,7 +1078,7 @@ protected function _optionsOptions($fieldName, $options) {
Inflector::pluralize(preg_replace('/_id$/', '', $fieldName))
);
$varOptions = $this->_View->get($varName);
if (!is_array($varOptions)) {
if (!is_array($varOptions) && !($varOptions instanceof Traversable)) {
return $options;
}
if ($options['type'] !== 'radio') {

0 comments on commit 9a075ac

Please sign in to comment.
You can’t perform that action at this time.