* Modify the scope of linked stories and bugs in the plan.

This commit is contained in:
tianshujie
2021-11-25 13:16:20 +08:00
parent 4f4a1f990b
commit 3816d9a775
3 changed files with 8 additions and 5 deletions
+1
View File
@@ -2519,6 +2519,7 @@ class bugModel extends model
->beginIF(!$this->app->user->admin)->andWhere('execution')->in('0,' . $this->app->user->view->sprints)->fi()
->beginIF($excludeBugs)->andWhere('id')->notIN($excludeBugs)->fi()
->beginIF($projectID)->andWhere('project')->eq($projectID)->fi()
->beginIF($this->app->rawModule == 'productplan' and $this->app->rawMethod == 'linkbug')->andWhere('branch')->in("0,$branch")->fi()
->andWhere('deleted')->eq(0)
->orderBy($orderBy)->page($pager)->fetchAll();
return $bugs;