diff --git a/module/doc/control.php b/module/doc/control.php index 778b899373..c51d41e5c1 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -622,6 +622,7 @@ class doc extends control { $doc = $this->doc->getByID($docID); $objectType = $this->dao->select('type')->from(TABLE_DOCLIB)->where('id')->eq($doc->lib)->fetch('type'); + if($this->config->systemMode == 'classic' and $objectType == 'project') $objectType = 'execution'; $this->doc->delete(TABLE_DOC, $docID); /* if ajax request, send result. */