* Fixed bug: #6531: Function getUpdateJS doesn't work properly (Thanks to Philip...
authorThomas Hempel <thomas.hempel@typo3.org>
Sun, 21 Oct 2007 14:08:03 +0000 (14:08 +0000)
committerThomas Hempel <thomas.hempel@typo3.org>
Sun, 21 Oct 2007 14:08:03 +0000 (14:08 +0000)
* Fixed bug: #434: function getUpdateJS produce JS error messages

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1@2603 709f56b5-9817-0410-a4d7-c38de5d9e867

.settings/org.eclipse.php.core.projectOptions.prefs [new file with mode: 0644]
ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

diff --git a/.settings/org.eclipse.php.core.projectOptions.prefs b/.settings/org.eclipse.php.core.projectOptions.prefs
new file mode 100644 (file)
index 0000000..01f1418
--- /dev/null
@@ -0,0 +1,5 @@
+#Sun Oct 21 15:37:51 CEST 2007
+eclipse.preferences.version=1
+org.eclipse.php.core.contextRoot=
+org.eclipse.php.core.defaultEncoding=
+org.eclipse.php.core.includePath=<?xml version\="1.0" encoding\="UTF-8"?>\n<includepath>\n</includepath>\n
index 204a06c..f705906 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-21     Thomas Hempel <thomas@typo3-unleashed.net>
+       
+       * Fixed bug: #6531: Function getUpdateJS doesn't work properly (Thanks to Philip Almeida)
+       * Fixed bug: #434: function getUpdateJS produce JS error messages
+       
 2007-10-20  Ingmar Schlecht  <ingmar@typo3.org>
 
        * Fixed bug #5949: BE-Shortcut to Tools->User Admin returns error. (By Oliver Hader)
index cd4d14a..b3ba2d3 100755 (executable)
@@ -6058,18 +6058,19 @@ class tslib_cObj {
        function getUpdateJS($dataArray, $formName, $arrPrefix, $fieldList)     {
                $JSPart='';
                $updateValues=t3lib_div::trimExplode(',',$fieldList);
+               reset($updateValues);
                while(list(,$fKey)=each($updateValues)) {
                        $value = $dataArray[$fKey];
                        if (is_array($value))   {
                                reset($value);
                                while(list(,$Nvalue)=each($value))      {
                                        $JSPart.="
-       updateForm('".$formName."','".$arrPrefix."[".$fKey."][]',".t3lib_div::quoteJSvalue($Nvalue, true).")";
+       updateForm('".$formName."','".$arrPrefix."[".$fKey."][]',".t3lib_div::quoteJSvalue($Nvalue, true).");";
                                }
 
                        } else {
                                $JSPart.="
-       updateForm('".$formName."','".$arrPrefix."[".$fKey."]',".t3lib_div::quoteJSvalue($value, true).")";
+       updateForm('".$formName."','".$arrPrefix."[".$fKey."]',".t3lib_div::quoteJSvalue($value, true).");";
                        }
                }
                $JSPart='<script type="text/javascript">