diff --git a/module/common/model.php b/module/common/model.php index e67ab4a9b0..8ab82ca1c7 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -560,15 +560,19 @@ class commonModel extends model $isTutorialMode = commonModel::isTutorialMode(); $currentModule = $app->getModuleName(); $currentMethod = $app->getMethodName(); - $menu = customModel::getModuleMenu($moduleName); $isMobile = $app->viewType === 'mhtml'; + /* When use workflow then set rawModule to moduleName. */ + if($moduleName == 'flow') $moduleName = $app->rawModule; + $menu = customModel::getModuleMenu($moduleName); + /* If this is not workflow then use rawModule and rawMethod to judge highlight. */ if(!$app->isFlow) { $currentModule = $app->rawModule; $currentMethod = $app->rawMethod; } + if($isTutorialMode and defined('WIZARD_MODULE')) $currentModule = WIZARD_MODULE; if($isTutorialMode and defined('WIZARD_METHOD')) $currentMethod = WIZARD_METHOD;