Skip to content

Commit

Permalink
monitoring: Fix navigation usage in the state badges widget
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Sep 27, 2015
1 parent 901a5b6 commit 73242da
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -75,11 +75,11 @@ public function createBadge($state, Navigation $badges)
{
if ($this->has($state)) {
$badge = $this->get($state);
$badges->addItem(array(
$badges->addItem(new NavigationItem($state, array(
'attributes' => array('class' => 'badge ' . $state),
'label' => $badge->count,
'url' => $this->url
));
)));
}
return $this;
}
Expand All @@ -88,7 +88,7 @@ public function createBadgeGroup(array $states, Navigation $badges)
{
$group = array_intersect_key($this->badges, array_flip($states));
if (! empty($group)) {
$groupItem = new NavigationItem();
$groupItem = new NavigationItem(uniqid(), array('name' => ''));
$groupBadges = new Navigation();
$groupBadges->setLayout(Navigation::LAYOUT_TABS);
foreach (array_keys($group) as $state) {
Expand Down

0 comments on commit 73242da

Please sign in to comment.