From eddeec47cfaa3d3a44fa7b0cb2e8889fde9e0111 Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Thu, 18 Feb 2021 13:22:22 +0800 Subject: [PATCH] * Fix bug. --- module/project/model.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/project/model.php b/module/project/model.php index 659e20ada5..9a0249a5a4 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -2382,8 +2382,9 @@ class projectModel extends model $childSprints = $this->dao->select('id')->from(TABLE_PROJECT)->where('project')->eq($project->id)->andWhere('type')->in('stage,sprint')->andWhere('deleted')->eq('0')->fetchPairs(); $linkedProducts = $this->loadModel('product')->getProductPairsByProject($project->id); - if(!empty($childSprints)) $this->loadModel('user')->updateUserView($childSprints, 'sprint', $changedAccounts); - if(!empty($linkedProducts)) $this->loadModel('user')->updateUserView(array_keys($linkedProducts), 'product', $changedAccounts); + $this->loadModel('user')->updateUserView(array($projectID), 'project', $changedAccounts); + if(!empty($childSprints)) $this->user->updateUserView($childSprints, 'sprint', $changedAccounts); + if(!empty($linkedProducts)) $this->user->updateUserView(array_keys($linkedProducts), 'product', $changedAccounts); } /* Add iteration or phase team members to the project team. */