From b003002dadb6723b0e63a19425792ccefdd855f7 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Fri, 9 Apr 2021 16:40:37 +0800 Subject: [PATCH] * Fix delete link. --- module/doc/control.php | 1 + 1 file changed, 1 insertion(+) 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. */