← Back to team overview

phpdevshell team mailing list archive

[Bug 1011661] Re: Empty control panel present arbitrary menu item

 

** Changed in: phpdevshell
    Milestone: 3.2.1-stable => 3.5

-- 
You received this bug notification because you are a member of
PHPDevShell, which is subscribed to PHPDevShell.
https://bugs.launchpad.net/bugs/1011661

Title:
  Empty control panel present arbitrary menu item

Status in Open Source PHP RAD Framework with UI.:
  Fix Committed

Bug description:
  When a give menu item is an alias of the "control panel", but is
  empty, it shows the icon of an arbitrary menu item (in my case
  "optimise database").

  This is why:

  in controlPanel.query.php, line 163 and following, the $nav is looped
  on to fill $this->cp[].

  after this loop, if $this->cp[] is empty, this code is executed:

  			if (empty($this->cp)) {
  				$this->cp[$m['menu_id']] = $m['menu_id'];
  			}

  I don't understand the meaning of this, since, $m is the last
  iteration of the loop, it's clealry not desireable. I think these
  lines can be delete, why maybe there's a reason for them being here?

To manage notifications about this bug go to:
https://bugs.launchpad.net/phpdevshell/+bug/1011661/+subscriptions


References