diff --git a/module/program/control.php b/module/program/control.php index d686aac381..b6b201df04 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -113,6 +113,15 @@ class program extends control $this->app->loadClass('pager', $static = true); $pager = new pager($recTotal, $recPerPage, $pageID); + /* Get the top programID. */ + if($programID) + { + $program = $this->program->getPGMByID($programID); + $path = explode(',', $program->path); + $path = array_filter($path); + $programID = current($path); + } + $this->view->title = $this->lang->program->PGMProduct; $this->view->position[] = $this->lang->program->PGMProduct;