From 9fef0b00af0ea394d9736adfcf8246e0d46cbad9 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Fri, 4 Dec 2020 09:55:52 +0800 Subject: [PATCH] * Show the products of the top program. --- module/program/control.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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;