Control Panel menu's in rare conditions rendered more than once

Bug #985480 reported by Don Schoeman
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PHPDevShell
Fix Released
Medium
Don Schoeman

Bug Description

I have a fairly customised menu structure within PHPDevShell and recently found that many of the menu items within the control panel was rendered multiple times.

I'm not sure if there is something broken within my own menu since an output of the navigation array shows everything is correct. There are no duplicates in the database and no problematic cache issues either. The Menu administration page shows everything is correct as well.

The problem occurs in my case within controlPanel.query.php:childCP() recursive function which builds its own array of control panel menu items. It seems the function iterates over the same menu items multiple times which then creates multiple entries for the same menu items in the array.

Revision history for this message
Greg (gregfr) wrote :

I have the same problem with a menu having 2 submenus, which have a lot of submenus

Revision history for this message
Don Schoeman (don.sch) wrote :

Greg, is the problem only in the Control Panel itself like mine? If have fixed the control panel issue but can't push the patch at the moment as the current 3.1.4 branch (846) seems to be broken. Currently colaborating with Jason on that.

Revision history for this message
Don Schoeman (don.sch) wrote :

Sorry, meant to say: "I have fixed the control panel issue" instead of "If have fixed the control panel issue".

Don Schoeman (don.sch)
Changed in phpdevshell:
status: New → Fix Committed
Revision history for this message
Greg (gregfr) wrote :

The fix seems to work ok for me, but only for the icons of the control panel ; the menus still show duplicates

Changed in phpdevshell:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.