diff --git a/module/project/model.php b/module/project/model.php index 34c55917d6..9eca9d5327 100755 --- a/module/project/model.php +++ b/module/project/model.php @@ -1786,7 +1786,7 @@ class projectModel extends model /* Create actions. */ $this->loadModel('action'); - if($products) $this->action->create('project', $projectID, 'managed', '', implode(',', $products)); + if(!empty($needUpdate)) $this->action->create('project', $projectID, 'managed', '', implode(',', $products)); $unlinkedProducts = array_diff($oldProductIdList, $products); if(!empty($unlinkedProducts)) {