Fixed bug #16558: tcemain: wrong variables used due copy&paste
authorSteffen Kamper <info@sk-typo3.de>
Wed, 24 Nov 2010 16:54:11 +0000 (16:54 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Wed, 24 Nov 2010 16:54:11 +0000 (16:54 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9580 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index b6c30c8..b9dacdf 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-11-24  Steffen Kamper  <steffen@typo3.org>
 
+       * Fixed bug #16558: tcemain: wrong variables used due copy&paste
        * Fixed bug #14050: CleanUp - CGL format of t3lib files - t3lib_tceforms_inline
        * Fixed bug #16557: Wrong variables in tceforms_inline
        * Fixed bug #14050: CleanUp - CGL format of t3lib files - t3lib_tceforms_fe
index 2a23844..494b425 100644 (file)
@@ -1749,11 +1749,11 @@ class t3lib_TCEmain     {
                                        $newFiles = implode(',', $dbAnalysis->getValueArray());
                                        list(,,$recFieldName) = explode(':', $recFID);
                                        if ($currentFilesForHistory != $newFiles) {
-                                               $this->mmHistoryRecords[$currentTable . ':' . $id]['oldRecord'][$recFieldName] = $currentFilesForHistory;
-                                               $this->mmHistoryRecords[$currentTable . ':' . $id]['newRecord'][$recFieldName] = $newFiles;
+                                               $this->mmHistoryRecords[$table . ':' . $id]['oldRecord'][$recFieldName] = $currentFilesForHistory;
+                                               $this->mmHistoryRecords[$table . ':' . $id]['newRecord'][$recFieldName] = $newFiles;
                                        } else {
-                                               $this->mmHistoryRecords[$currentTable . ':' . $id]['oldRecord'][$currentField] = '';
-                                               $this->mmHistoryRecords[$currentTable . ':' . $id]['newRecord'][$currentField] = '';
+                                               $this->mmHistoryRecords[$table . ':' . $id]['oldRecord'][$recFieldName] = '';
+                                               $this->mmHistoryRecords[$table . ':' . $id]['newRecord'][$recFieldName] = '';
                                        }
                                } else {
                                        $this->dbAnalysisStore[] = array($dbAnalysis, $tcaFieldConf['MM'], $id, 0);     // This will be traversed later to execute the actions