コード例 #1
0
 function pre_deleteItem()
 {
     if (isset($this->fields["users_id"]) && ($this->fields["users_id"] === getLoginUserID() || haveRight("global_add_tasks", "1"))) {
         // Auto update actiontime
         $fup = new TicketTask();
         $fup->getFromDB($this->fields["tickettasks_id"]);
         $updates2[] = "actiontime";
         $fup->fields["actiontime"] = 0;
         $fup->updateInDB($updates2);
     }
     return true;
 }