* Fix bug#18250.

This commit is contained in:
xieqiyu
2022-01-06 11:21:43 +08:00
parent 962da1c6a2
commit f78a39f5a1
+1 -1
View File
@@ -1430,7 +1430,7 @@ class actionModel extends model
$action = $this->getById($actionID);
if($action->action != 'deleted') return;
if($action->objectType == 'execution')
if($this->config->systemMode == 'new' and $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));