Actions
Bug #19075
closedTCEmain: $id is overwritten and causes problems to hooks
Start date:
2008-07-08
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If you set the stage for multiple workspace elements, the case 'setStage' overwrites the globals $id var in the foreach loop.
Therefore you get in the Postprocessing Hook just the last id of elements with a changed state.
Solution should be, to change the name of the id variable in the foreach loop (line 2359):
case 'setStage':
$idList = t3lib_div::trimExplode(',',$id,1);
foreach($idList as $id_local){
...
}
(issue imported from #M8922)
Actions