* Code for task#46521.

This commit is contained in:
xieqiyu
2021-12-30 08:47:06 +08:00
parent d5d09b1e93
commit 2b7249da7a
6 changed files with 13 additions and 0 deletions
+7
View File
@@ -1425,6 +1425,13 @@ class actionModel extends model
{
$action = $this->getById($actionID);
if($action->action != 'deleted') return;
if($action->objectType == 'execution')
{
$execution = $this->dao->select('*')->from(TABLE_EXECUTION)->where('id')->eq($action->objectID)->fetch();
if($execution->deleted and empty($execution->project)) return print(js::error($this->lang->action->undeletedTips));
}
if($action->objectType == 'product')
{
$product = $this->dao->select('id,name,code,acl')->from(TABLE_PRODUCT)->where('id')->eq($action->objectID)->fetch();