From 200af8e045be8752bc385aed3a3fdfc56b8154d9 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Wed, 1 Mar 2023 03:16:04 +0000 Subject: [PATCH] * Fix bug #32476. --- module/programplan/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/programplan/model.php b/module/programplan/model.php index 02c097829d..8b089a80a5 100755 --- a/module/programplan/model.php +++ b/module/programplan/model.php @@ -1153,7 +1153,7 @@ class programplanModel extends model $this->updateSubStageAttr($planID, $plan->attribute); if($plan->acl != 'open') { - $planIdList = $this->dao->select('id')->from(TABLE_EXECUTION)->where('path')->like("%,$planID,%")->andWhere('type')->eq('stage')->fetchAll('id'); + $planIdList = $this->dao->select('id')->from(TABLE_EXECUTION)->where('path')->like("%,$planID,%")->andWhere('type')->ne('project')->fetchAll('id'); $this->loadModel('user')->updateUserView(array_keys($planIdList), 'sprint'); }