From 40ca0b3f775f3ab4f6487dba1ca56464f3d620c7 Mon Sep 17 00:00:00 2001 From: liuhong Date: Tue, 31 Jan 2023 01:38:33 +0000 Subject: [PATCH] * Adjust code logic for 30389. --- module/execution/control.php | 1 - module/project/control.php | 1 - 2 files changed, 2 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index 7ad695d678..544207a2b5 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -3066,7 +3066,6 @@ class execution extends control /* Delete execution. */ $execution = $this->execution->getByID($executionID); $this->dao->update(TABLE_EXECUTION)->set('deleted')->eq(1)->where('id')->eq($executionID)->exec(); - $this->dao->update(TABLE_BUG)->set('execution')->eq(0)->where('execution')->eq($executionID)->exec(); $this->loadModel('action')->create('execution', $executionID, 'deleted', '', ACTIONMODEL::CAN_UNDELETED); $this->execution->updateUserView($executionID); $this->loadModel('common')->syncPPEStatus($executionID); diff --git a/module/project/control.php b/module/project/control.php index a37f281439..eb1771c9bc 100755 --- a/module/project/control.php +++ b/module/project/control.php @@ -2044,7 +2044,6 @@ class project extends control /* Delete the execution under the project. */ $executionIdList = $this->loadModel('execution')->getPairs($projectID); - $this->dao->update(TABLE_BUG)->set('execution')->eq(0)->where('execution')->in(array_keys($executionIdList))->exec(); /* Delete shadow product.*/ $project = $this->project->getByID($projectID);