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. */