From 3276b61533dcccbc70ac0b18a1bcff8f31fe5909 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 31 Aug 2021 17:25:47 +0800 Subject: [PATCH] * Fix bug#14797. --- 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 e25d738e0c..1c1d81a7eb 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1352,7 +1352,7 @@ EOD; $executionPairs = array(); $object = $app->dbh->query('SELECT project,type FROM ' . TABLE_EXECUTION . " WHERE `id` = '$executionID'")->fetch(); $orderBy = $object->type == 'stage' ? 'ORDER BY `id` ASC' : 'ORDER BY `id` DESC'; - $executionList = $app->dbh->query("SELECT id,name FROM " . TABLE_EXECUTION . " WHERE `project` = '{$object->project}' $orderBy")->fetchAll(); + $executionList = $app->dbh->query("SELECT id,name FROM " . TABLE_EXECUTION . " WHERE `project` = '{$object->project}' AND `deleted` = '0' $orderBy")->fetchAll(); foreach($executionList as $execution) { if($execution->id == $executionID) continue;