Beispiel #1
0
 function Delete()
 {
     // Check the token
     if (!Kit::CheckToken()) {
         trigger_error(__('Sorry the form has expired. Please refresh.'), E_USER_ERROR);
     }
     $db =& $this->db;
     $user =& $this->user;
     $response = new ResponseManager();
     $resolutionID = Kit::GetParam('resolutionid', _POST, _INT);
     // Remove the resolution
     $resObject = new Resolution($db);
     if (!$resObject->Delete($resolutionID)) {
         trigger_error($resObject->GetErrorMessage(), E_USER_ERROR);
     }
     $response->SetFormSubmitResponse('Resolution deleted');
     $response->Respond();
 }