diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 3cda125117..18b1897354 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -1801,7 +1801,7 @@ class baseRouter global $filter; /* Remove these three params. */ - unset($passedParams['pgm']); + unset($passedParams['PRJ']); unset($passedParams['onlybody']); unset($passedParams['HTTP_X_REQUESTED_WITH']); diff --git a/module/program/control.php b/module/program/control.php index d6ad09a77d..65c744da16 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -97,8 +97,9 @@ class program extends control * @access public * @return void */ - public function createGuide($programID = 0) + public function createGuide($programID = 0, $from = 'PRJ') { + $this->view->from = $from; $this->view->programID = $programID; $this->display(); } @@ -976,9 +977,18 @@ class program extends control * @access public * @return void */ - public function PRJCreate($template = 'waterfall', $programID = 0, $parentProgramID = 0, $copyProgramID = '') + public function PRJCreate($template = 'waterfall', $programID = 0, $from = 'PRJ', $parentProgramID = 0, $copyProgramID = '') { - $this->lang->navGroup->program = 'project'; + if($from == 'PRJ') + { + $this->lang->navGroup->program = 'project'; + } + else + { + $this->lang->navGroup->program = 'program'; + $this->lang->program->switcherMenu = $this->program->getPGMCommonAction(); + } + if($_POST) { $projectID = $this->program->PRJCreate(); diff --git a/module/program/view/createguide.html.php b/module/program/view/createguide.html.php index 2ff0b81577..3adc459ae2 100644 --- a/module/program/view/createguide.html.php +++ b/module/program/view/createguide.html.php @@ -36,13 +36,14 @@ + diff --git a/module/program/view/pgmbrowse.html.php b/module/program/view/pgmbrowse.html.php index 91cd716af2..5dd1e01319 100644 --- a/module/program/view/pgmbrowse.html.php +++ b/module/program/view/pgmbrowse.html.php @@ -28,7 +28,7 @@