Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Bugfixes] Edit menu routes without selecting module not working
#1
Hello,

If you experience problems when changing the route when editing the menu does not change anything , you try to do a solution below:

1. Open the file your_root_folder/application/controllers/builtin/master/Menus.php
2. then locate the function update() , roughly around line 206 on if statment


Before: 

PHP Code:
if ((!empty($useModule) && empty($route)) || 
 
   !empty($useModule) && !empty($route) && $route == '#') {
 
   $u['menuLink'] = MODULE_DEFAULT_PATH $useModule;
} elseif (!empty(
$useModule) && !empty($route)) {
 
   $u['menuLink'] = $route;
} else {
 
   $u['menuLink'] = "#";


After Fix:

PHP Code:
if ((!empty($useModule) && empty($route)) || 
 
   !empty($useModule) && !empty($route) && $route == '#') {
 
   $u['menuLink'] = MODULE_DEFAULT_PATH $useModule;
} elseif (!empty(
$useModule) && !empty($route)) {
 
   $u['menuLink'] = $route;

//this line fixed the problems
} elseif (empty($useModule) && !empty($route)) {
 
   $u['menuLink'] = $route;
//----------------------------------------------

} else {
 
   $u['menuLink'] = "#";


3. Enjoy  Angel
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)