Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
Fix on ServiceToken submenu
Browse files Browse the repository at this point in the history
The Service Token SubMenu does not show.  Now it shows inside the usermenu.
Additionally: The link to the Service Tokens was incorrect, it was missing the 'copersion:' element
  • Loading branch information
HarryKodden committed Nov 23, 2017
1 parent 667227d commit 588b5ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/View/Elements/menuUser.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
foreach(array_keys($menuContent['plugins']) as $plugin) {
if(isset($menuContent['plugins'][$plugin]['coperson'])) {
foreach(array_keys($menuContent['plugins'][$plugin]['coperson']) as $label) {
print '<li class="mdl-menu__item">
print '<li>
<a href="#">'.$label.'</a>
<span class="sf-sub-indicator"> »</span>
<ul>';
Expand All @@ -137,10 +137,10 @@

$args = $menuContent['plugins'][$plugin]['coperson'][$label];

$args[] = $co['co_person_id'];
$args[] = 'copersonid:' . $co['co_person_id'];
$args['plugin'] = Inflector::underscore($plugin);

print "<li>" . $this->Html->link($co['co_name'], $args) . "</li>\n";
print '<li class="mdl-menu__item">' . $this->Html->link($co['co_name'], $args) . "</li>\n";
}

print "</ul></li>";
Expand Down

0 comments on commit 588b5ff

Please sign in to comment.