Resolves #59451: SelectViewHelper returns no items (Thanks to Thomas Löffler)
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 29 Jul 2014 20:23:53 +0000 (20:23 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 29 Jul 2014 20:23:53 +0000 (20:23 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/static_info_tables/trunk@86064 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
Classes/ViewHelpers/Form/SelectViewHelper.php

index 6e592d0..baf16ed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Resolves #60666: Outdated data for Turkish lira
        * Resolves #59459: SelectViewHelper: DefaultOptionValue and Label with no effect (Thanks to Thomas Löffler)
+       * Resolves #59451: SelectViewHelper returns no items (Thanks to Thomas Löffler)
 
 2014-06-03  Stanislas Rolland  <typo3@sjbr.ca>
 
index e7884f1..8feda1d 100644 (file)
@@ -220,8 +220,10 @@ class SelectViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\SelectViewHelpe
                        'arguments' => $this->arguments,
                        'items'     => $items
                ));
-               $this->arguments = $list['arguments'];
-               $items = $list['items'];
+               if ($list !== NULL) {
+                       $this->arguments = $list['arguments'];
+                       $items = $list['items'];
+               }
 
                return $items;
        }