Wedge

Public area => The Pub => Features => Topic started by: Arantor on November 1st, 2011, 01:02 PM

Title: Menu bug: separator not removed if it's the first visible item on a menu
Post by: Arantor on November 1st, 2011, 01:02 PM
If a group can see the admin menu, typically because of being able to see the moderate stuff, but don't have access to anything further up that menu, they're given the separator, then the rest of the menu contents. We need to have it skip the separator if it's the first item in a menu.
Title: Re: Menu bug: separator not removed if it's the first visible item on a menu
Post by: Nao on November 1st, 2011, 02:09 PM
Eh..?
I have code in the menu that supposedly prevents that... Check out after the menu is generated, there's a foreach loop that unsets separators if they're at the beginning or the end, or if there are two joint separators inside a menu...

I don't have time to check out the code right now, maybe it's only broken for starter separators, I don't know.
Title: Re: Menu bug: separator not removed if it's the first visible item on a menu
Post by: Arantor on November 1st, 2011, 02:16 PM
I'll look at it in a bit, just wanted to log that it is the case, really.