case 'edit': case 'save': case 'saveCode': case 'addItem': case 'addCriteria': case 'removeCriteria': case 'addCriteriaJoomla': case 'removeCriteriaJoomla': case 'addCriteriaFixed': case 'removeCriteriaFixed': case 'removeItem': case 'saveFinalizeCode': case 'pub': if($task == 'save'){ $id = $integrator->saveRule(); JRequest::setVar('id', $id); } else if($task == 'saveFinalizeCode'){ $integrator->saveFinalizeCode(); } else if($task == 'addItem'){ $integrator->addItem(); } else if($task == 'saveCode'){ $integrator->saveCode(); } else if($task == 'removeItem'){ $integrator->removeItem(); } else if($task == 'addCriteria'){