* Adjust code logic for 30389.

This commit is contained in:
liuhong
2023-01-31 01:38:33 +00:00
parent b75714f5b1
commit 40ca0b3f77
2 changed files with 0 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);