* Fix delete link.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user