From 2c1d41da05f6c1e79fdd5ad275e776f18d14f4f1 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Tue, 30 Mar 2021 15:36:25 +0800 Subject: [PATCH] * Finish task #37096. --- module/execution/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index cd06c413c4..acbc4c350e 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -2235,7 +2235,8 @@ class executionModel extends model ->leftJoin(TABLE_EXECUTION)->alias('t2')->on('t1.root = t2.id') ->where('t1.account')->eq($account) ->andWhere('t1.root')->ne($currentExecution) - ->andWhere('t1.type')->eq($execution->type) + ->andWhere('t1.type')->eq('execution') + ->andWhere('t2.project')->eq($execution->project) ->andWhere('t2.deleted')->eq('0') ->groupBy('t1.root') ->orderBy('t1.root DESC')