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)