Skip to content
Snippets Groups Projects
Commit 227b3e90 authored by Uma's avatar Uma
Browse files

Fixes #1072 Confusing menu system issue addressed

parent bead618a
No related branches found
No related tags found
No related merge requests found
......@@ -51,11 +51,12 @@ abstract class Vtiger_Basic_View extends Vtiger_Footer_View {
$supportGroup = $menuGroupedByParent['SUPPORT'];
unset($menuGroupedByParent['SUPPORT']);
$menuGroupedByParent['SUPPORT'] = $supportGroup;
$parentApp = $request->get('app');
foreach ($menuGroupedByParent as $parentCategory => $menuList) {
if($parentCategory == 'ANALYTICS' || $parentCategory == 'SETTINGS') continue;
if(count($menuList) > 0) {
if(array_key_exists($selectedModule, $menuList) && $parentCategory) {
if(array_key_exists($selectedModule, $menuList) && ($parentCategory == $parentApp)) {
$moduleFound = true;
$selectedModuleMenuCategory = $parentCategory;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment