Admin-navigation hides when selecting item

Dear all,

strange behavior of the admin panel were showing my two setups of dolphin 7.1x:
Locally, when expanding an admin item on the left side, it STAYS open when selecting a subitem.
Online, the left item COLLAPSES whenever a subitem is selected, which was very annoying.

Both installations are identically, local for development, online live.
Except my local server's root is "/dolphin/" and the online server's it's just "/"

I found out, that in BxDolAdminMenu.php at function getMainMenu() variable s$Uri was set depending the REQUEST_URI

To correct the behavior, I just have to strip the condition (... && $sPath != '/' ...) in the first if clause that constructs the $sUri variable.

The '/' case leads online to a malformed $sUri, having one slash to much and subsequently the condition to show active subitems is always false.

If there is any other reason why '/' have to be there in the if condition, just post it here ;-)

Tom

Quote · 21 Jun 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.