* Fix bug #18370,18371,18372,18379.

This commit is contained in:
caoyanyi
2022-01-13 05:08:08 +00:00
parent 5ed3a7cede
commit e2d8d506b3
8 changed files with 40 additions and 5 deletions
+16
View File
@@ -122,4 +122,20 @@ class pipelineModel extends model
return !dao::isError();
}
/**
* Delete one record.
*
* @param string $id the id to be deleted
* @param string $object the action object
* @access public
* @return bool
*/
public function delete($id, $object = 'gitlab')
{
$this->dao->update(TABLE_PIPELINE)->set('deleted')->eq(1)->where('id')->eq($id)->exec();
$this->loadModel('action')->create($object, $id, 'deleted', '', ACTIONMODEL::CAN_UNDELETED);
return true;
}
}