diff --git a/module/programplan/control.php b/module/programplan/control.php index 3ca46d2b1a..26e934594d 100644 --- a/module/programplan/control.php +++ b/module/programplan/control.php @@ -121,18 +121,20 @@ class programplan extends control $stages = empty($planID) ? $this->loadModel('stage')->getStages('id_asc') : array(); $this->app->loadLang('stage'); - $project = $this->loadModel('project')->getById($projectID); - $plans = $this->programplan->getStage($planID ? $planID : $projectID, $this->productID, 'parent'); + $project = $this->loadModel('project')->getById($projectID); + $programPlan = $this->project->getById($planID); + $plans = $this->programplan->getStage($planID ? $planID : $projectID, $this->productID, 'parent'); $this->view->title = $this->lang->programplan->create . $this->lang->colon . $project->name; $this->view->position[] = html::a($this->createLink('programplan', 'browse', "projectID=$projectID"), $project->name); $this->view->position[] = $this->lang->programplan->create; - $this->view->project = $project; - $this->view->stages = $stages; - $this->view->plans = $plans; - $this->view->planID = $planID; - $this->view->type = 'lists'; + $this->view->project = $project; + $this->view->stages = $stages; + $this->view->programPlan = $programPlan; + $this->view->plans = $plans; + $this->view->planID = $planID; + $this->view->type = 'lists'; $this->display(); } diff --git a/module/programplan/view/create.html.php b/module/programplan/view/create.html.php index 07c6f84b7a..930c61f5e3 100644 --- a/module/programplan/view/create.html.php +++ b/module/programplan/view/create.html.php @@ -15,7 +15,10 @@