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')