diff --git a/module/programplan/control.php b/module/programplan/control.php index 18870f2037..5723952bda 100644 --- a/module/programplan/control.php +++ b/module/programplan/control.php @@ -25,8 +25,9 @@ class programplan extends control $this->loadModel('product'); $this->loadModel('project'); $products = $this->product->getProductPairsByProject($projectID); - $productID = $this->product->saveVisitState($productID, $products); - $project = $this->project->getByID($projectID); + + $this->product->saveVisitState($productID, $products); + $project = $this->project->getByID($projectID); $this->session->set('hasProduct', $project->hasProduct); $this->project->setMenu($projectID);