From 815eb40a200116cd0e91fcd4101869dadd018102 Mon Sep 17 00:00:00 2001 From: mayue Date: Tue, 24 May 2022 08:39:55 +0000 Subject: [PATCH] * Optimize code. --- module/execution/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index 4a6a20b6a9..3a2b693936 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -964,7 +964,7 @@ class executionModel extends model /* Update the status of the parent stage. */ if($oldExecution->type == 'stage') { - $parent = $this->getByID($oldExecution->parent); + $parent = $this->getByID($oldExecution->parent); if($parent->type == 'stage' and $parent->status == 'closed') { $this->dao->update(TABLE_EXECUTION)->set('status')->eq('doing')->where('id')->eq($parent->id)->exec(); @@ -1015,7 +1015,7 @@ class executionModel extends model /* Update the status of the parent stage. */ if($oldExecution->type == 'stage') { - $parent = $this->getByID($oldExecution->parent); + $parent = $this->getByID($oldExecution->parent); if($parent->type == 'stage') { $isClosed = true;