Issue Bug Closed

#19075TCEmain: $id is overwritten and causes problems to hooks

Schmidt Timo 07/08/08, 13:54 updated 08/06/10, 13:22

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.