diff --git a/module/action/model.php b/module/action/model.php index 3721e514ab..e83e3f2ba1 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -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));