From 873df65437f2c86defa8b2dcb6421445ac06f013 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 1 Jun 2022 16:23:25 +0800 Subject: [PATCH] * Fix bug #50321. --- module/common/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index 77b1299f44..c5b10bbe3f 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1703,8 +1703,8 @@ EOD; $executionList = $app->dbh->query("SELECT id,name,parent FROM " . TABLE_EXECUTION . " WHERE `project` = '{$object->project}' AND `deleted` = '0' $userCondition $orderBy")->fetchAll(); foreach($executionList as $execution) { - if($execution->id == $executionID) continue; if(isset($executionPairs[$execution->parent])) unset($executionPairs[$execution->parent]); + if($execution->id == $executionID) continue; $executionPairs[$execution->id] = $execution->name; }