Selected objects: |
Available objects: |
|
'class' and 'id' parameters must be specifed for this operation.
\n"); } else { $oObj = $oContext->GetObject($sClass, $id); if ($oObj != null) { $oP->set_title("iTop - ".$oObj->GetName()." - $sClass details"); $oObj->DisplayDetails($oP); } else { $oP->set_title("iTop - Error"); $oP->add("Sorry this object does not exist (or you are not allowed to view it).
\n"); } } break; case 'new': $step = utils::ReadParam('step', '1'); $aSteps = array( 'Ticket Information', 'Impacted Infrastructure', 'Additional Impact', 'Related Tickets', 'Contacts to Notify', 'Confirmation', 'Ticket Creation' ); $oWizard = new IncidentCreationWizard($step); $oP = new iTopWizardWebPage("ITop - Incident Management", $currentOrganization, $step, $aSteps); switch($step) { case 1: default: //$oP->add(''class' and 'id' parameters must be specifed for this operation.
\n"); } else { $oObj = $oContext->GetObject($sClass, $id); if ($oObj != null) { $oP->set_title("iTop - ".$oObj->GetName()." - $sClass modification"); $oP->add("Sorry this object does not exist (or you are not allowed to view it).
\n"); } } break; case 'apply_modify': $sClass = utils::ReadPostedParam('class', ''); $id = utils::ReadPostedParam('id', ''); $sTransactionId = utils::ReadPostedParam('transaction_id', ''); if ( empty($sClass) || empty($id)) // TO DO: check that the class name is valid ! { $oP->add("'class' and 'id' parameters must be specifed for this operation.
\n"); } else if (!utils::IsTransactionValid($sTransactionId)) { $oP->p("Error: object has already be updated!\n"); } else { $oObj = $oContext->GetObject($sClass, $id); if ($oObj != null) { $oP->set_title("iTop - ".$oObj->GetName()." - $sClass modification"); $oP->add("Sorry this object does not exist (or you are not allowed to edit it).
\n"); } } $oP->add("Alors ça roule ?
"); $oObj->DisplayDetails($oP); break; } $oP->output(); ?>