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. *