* Merge 18.x
This commit is contained in:
@@ -1100,9 +1100,7 @@ class treeModel extends model
|
||||
$paths = $this->dao->select('DISTINCT t3.' . $field)->from($table1)->alias('t1')
|
||||
->leftJoin($table2)->alias('t2')->on('t1.' . $linkObject . ' = t2.id')
|
||||
->leftJoin(TABLE_MODULE)->alias('t3')->on('t2.module = t3.id')
|
||||
->leftJoin(TABLE_PROJECT)->alias('t4')->on('t1.project = t4.id')
|
||||
->where('(t1.project')->eq($executionID)
|
||||
->orWhere('t4.project')->eq($executionID)->markRight(1)
|
||||
->where('t1.project')->eq($executionID)
|
||||
->andWhere('t3.deleted')->eq(0)
|
||||
->andWhere('t2.deleted')->eq(0)
|
||||
->beginIF(isset($extra['branchID']) and $branch !== 'all')->andWhere('t2.branch')->eq($branch)->fi()
|
||||
|
||||
Reference in New Issue
Block a user