Merge branch 'tanghucheng_feedback_module' into 'master'

* Fix bug #28639.

See merge request easycorp/zentaopms!5801
This commit is contained in:
王怡栋
2022-10-19 06:11:24 +00:00
+2 -2
View File
@@ -45,11 +45,11 @@ class tree extends control
$products = $this->product->getProducts($this->session->project, 'all', '', false);
if($viewType == 'case') $this->lang->modulePageNav = $this->product->select($products, $rootID, 'tree', 'browse', 'case', $branch);
}
else if($this->app->tab == 'feedback' or $this->app->tab == 'ticket')
else if($this->app->tab == 'feedback')
{
$products = $this->loadModel('feedback')->getGrantProducts();
if(!$rootID) $rootID = key($products);
$this->loadModel('feedback')->setMenu($rootID);
$this->loadModel('feedback')->setMenu($rootID, $viewType, $viewType);
}
/* According to the type, set the module root and modules. */