From e17c9fc362cec82361a1138b574e370c431dcd1c Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Tue, 1 Dec 2020 15:18:44 +0800 Subject: [PATCH] * Fix a bug. --- module/program/control.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/program/control.php b/module/program/control.php index e3410206d1..26d98c8890 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -1290,7 +1290,9 @@ class program extends control } else { + $projectIdList = $this->project->getExecutionsByProject($projectID); $this->project->delete(TABLE_PROJECT, $projectID); + $this->dao->update(TABLE_PROJECT)->set('deleted')->eq(1)->where('id')->in(array_keys($projectIdList))->exec(); $this->dao->update(TABLE_DOCLIB)->set('deleted')->eq(1)->where('project')->eq($projectID)->exec(); $this->project->updateUserView($projectID); $this->session->set('PRJ', '');