* Fix delete link.

This commit is contained in:
Yagami
2021-04-09 16:40:42 +08:00
parent fdfd2c324a
commit b003002dad
+1
View File
@@ -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. */