* Fix bug #32374.
This commit is contained in:
@@ -3675,7 +3675,13 @@ class executionModel extends model
|
||||
if($changedAccounts)
|
||||
{
|
||||
$this->loadModel('user')->updateUserView($projectID, $projectType, $changedAccounts);
|
||||
$linkedProducts = $this->loadModel('product')->getProductPairsByProject($projectID);
|
||||
$linkedProducts = $this->dao->select("t2.id")->from(TABLE_PROJECTPRODUCT)->alias('t1')
|
||||
->leftJoin(TABLE_PRODUCT)->alias('t2')->on('t1.product = t2.id')
|
||||
->where('t2.deleted')->eq(0)
|
||||
->andWhere('t1.project')->eq($projectID)
|
||||
->andWhere('t2.vision')->eq($this->config->vision)
|
||||
->fetchPairs();
|
||||
|
||||
if(!empty($linkedProducts)) $this->user->updateUserView(array_keys($linkedProducts), 'product', $changedAccounts);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user