From aacfdcdc1cb5b836ea7612088e4cb8703f3e5c53 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 18 May 2022 11:10:57 +0800 Subject: [PATCH] * Fix bug for task #54336. --- module/execution/model.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/module/execution/model.php b/module/execution/model.php index 69d78ba413..3a113138a2 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -2703,6 +2703,17 @@ class executionModel extends model $objectPairs = $this->dao->select('id,name')->from(TABLE_PROJECT) ->where('deleted')->eq(0) + ->andWhere('type')->eq('project') + ->andWhere('(project')->eq($projectID) + ->orWhere('id')->eq($projectID) + ->markRight(1) + ->orderBy('openedDate_desc') + ->limit('9') + ->fetchPairs(); + + $objectPairs += $this->dao->select('id,name')->from(TABLE_PROJECT) + ->where('deleted')->eq(0) + ->andWhere('type')->ne('project') ->andWhere('(project')->eq($projectID) ->orWhere('id')->eq($projectID) ->markRight(1)