From 6470a77a4e1bb4291a25f2a6792a5e943180656d Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Wed, 10 Feb 2021 10:07:47 +0800 Subject: [PATCH] * Fix bug#10974. --- module/report/control.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/module/report/control.php b/module/report/control.php index ec1aeb21d8..d9aa3fd299 100644 --- a/module/report/control.php +++ b/module/report/control.php @@ -11,6 +11,21 @@ */ class report extends control { + /** + * Construct. + * + * @access public + * @return void + */ + public function __construct() + { + parent::__construct(); + + /* Set report menu group. */ + $this->projectID = isset($_GET['PRJ']) ? $_GET['PRJ'] : 0; + if(!$this->projectID) $this->lang->navGroup->report = 'system'; + } + /** * The index of report, goto project deviation. *