Fixed bug #9479: Selected items are not visible after saving the form in BE
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Sat, 4 Oct 2008 17:42:28 +0000 (17:42 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Sat, 4 Oct 2008 17:42:28 +0000 (17:42 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4280 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_transferdata.php

index 0988def..4285c6f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-04  Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Fixed bug #9479: Selected items are not visible after saving the form in BE
+
 2008-10-03  Dmitry Dulepov  <dmitry@typo3.org>
 
        * Fixed bug #9452: config.absRefPrefix is applied only to a fixed set of directories
index 9dd04c1..c3480c8 100755 (executable)
@@ -431,13 +431,14 @@ class t3lib_transferData {
                if (intval($fieldConfig['config']['maxitems'])>1)       {
 
                                // Add regular elements:
-                       if (is_array($fieldConfig['config']['items']))  {
-                               $fieldConfig['config']['items'] = $this->procesItemArray($fieldConfig['config']['items'], $fieldConfig['config'], $TSconfig[$field], $table, $row, $field);
-                               foreach($fieldConfig['config']['items'] as $pvpv)       {
-                                       foreach($elements as $eKey => $value)   {
-                                               if (!strcmp($value,$pvpv[1]))   {
-                                                       $dataAcc[$eKey]=rawurlencode($pvpv[1]).'|'.rawurlencode($this->sL($pvpv[0]));
-                                               }
+                       if (!is_array($fieldConfig['config']['items'])) {
+                               $fieldConfig['config']['items'] = array();
+                       }
+                       $fieldConfig['config']['items'] = $this->procesItemArray($fieldConfig['config']['items'], $fieldConfig['config'], $TSconfig[$field], $table, $row, $field);
+                       foreach($fieldConfig['config']['items'] as $pvpv)       {
+                               foreach($elements as $eKey => $value)   {
+                                       if (!strcmp($value,$pvpv[1]))   {
+                                               $dataAcc[$eKey]=rawurlencode($pvpv[1]).'|'.rawurlencode($this->sL($pvpv[0]));
                                        }
                                }
                        }