[+BUGFIX] Fluid (ViewHelpers): Added check, if the given value implements the Iterato...
authorJochen Rau <j.rau@web.de>
Tue, 13 Oct 2009 15:30:07 +0000 (15:30 +0000)
committerJochen Rau <j.rau@web.de>
Tue, 13 Oct 2009 15:30:07 +0000 (15:30 +0000)
typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php

index f7e234c..6b6fd5b 100644 (file)
@@ -224,7 +224,7 @@ class Tx_Fluid_ViewHelpers_Form_SelectViewHelper extends Tx_Fluid_ViewHelpers_Fo
                if (!$this->arguments->hasArgument('optionValueField')) {
                        return $value;
                }
-               if (!is_array($value)) {
+               if (!is_array($value) && !($value instanceof Iterator)) {
                        if (is_object($value)) {
                                return Tx_Extbase_Reflection_ObjectAccess::getProperty($value, $this->arguments['optionValueField']);
                        } else {