Fixed bug #8922: setStage operation of t3lib_TCAmain::process_cmdmap() overwrites...
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Sat, 12 Jul 2008 18:24:47 +0000 (18:24 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Sat, 12 Jul 2008 18:24:47 +0000 (18:24 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3880 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index cd2b63e..179d022 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
        * Fixed bug #8864: Allow TS config.absRefPrefix to work with resources in typo3conf/ext. Make it work with a changed location of fileadmin/. (fix by Bejamin Mack)
        * Fixed bug #8833: TCA "check" type field checkboxes have no labels when in 1-column display (thanks to Francois Suter)
        * Fixed bug #8948: phpDoc @internal hides public functions of t3lib_div in Eclipse
+       * Fixed bug #8922: setStage operation of t3lib_TCAmain::process_cmdmap() overwrites $id parameter making it inaccessible for post-processing hooks 
 
 2008-07-11  Michael Stucki  <michael@typo3.org>
 
index 1ed8c38..2eeb3c4 100755 (executable)
@@ -2564,8 +2564,8 @@ class t3lib_TCEmain       {
                                                                                }
 
                                                                                foreach ($elementList as $tbl => $elementIdList) {
-                                                                                       foreach($elementIdList as $id)  {
-                                                                                               $this->version_setStage($tbl,$id,$value['stageId'],$value['comment']?$value['comment']:$this->generalComment, TRUE);
+                                                                                       foreach($elementIdList as $elementId)   {
+                                                                                               $this->version_setStage($tbl,$elementId,$value['stageId'],$value['comment']?$value['comment']:$this->generalComment, TRUE);
                                                                                        }
                                                                                }
                                                                        break;