From 415c4ea49cf5e6ea5895591428e5a5183f3e4630 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Wed, 28 May 2025 08:28:46 +0000 Subject: [PATCH] * [bug#62892,done,0.1h,0h] Fix undefined $project error. --- module/execution/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index 4ea00ac152..453a026a14 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -1492,7 +1492,7 @@ class executionModel extends model ->andWhere('t1.multiple')->eq('1') ->beginIF(!empty($project->isTpl))->andWhere('t1.isTpl')->eq('1')->fi() ->beginIF(!empty($project->model) && $project->model == 'ipd')->andWhere('t1.enabled')->eq('on')->fi() - ->beginIF(!$this->app->user->admin && !$project->isTpl)->andWhere('t1.id')->in($this->app->user->view->sprints)->fi() + ->beginIF(!$this->app->user->admin && empty($project->isTpl))->andWhere('t1.id')->in($this->app->user->view->sprints)->fi() ->beginIF(!empty($executionQuery))->andWhere($executionQuery)->fi() ->beginIF($productID)->andWhere('t3.product')->eq($productID)->fi() ->beginIF($projectID)->andWhere('t1.project')->eq($projectID)->fi()