Browse Source
Generate id for navigation item
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/14343/head
Daniel Kesselberg
7 years ago
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with
2 additions and
2 deletions
-
lib/private/NavigationManager.php
|
|
|
@ -274,7 +274,7 @@ class NavigationManager implements INavigationManager { |
|
|
|
if (!isset($info['navigations']['navigation'])) { |
|
|
|
continue; |
|
|
|
} |
|
|
|
foreach ($info['navigations']['navigation'] as $nav) { |
|
|
|
foreach ($info['navigations']['navigation'] as $key => $nav) { |
|
|
|
if (!isset($nav['name'])) { |
|
|
|
continue; |
|
|
|
} |
|
|
|
@ -286,7 +286,7 @@ class NavigationManager implements INavigationManager { |
|
|
|
continue; |
|
|
|
} |
|
|
|
$l = $this->l10nFac->get($app); |
|
|
|
$id = isset($nav['id']) ? $nav['id'] : $app; |
|
|
|
$id = $nav['id'] ?? $app . ($key === 0 ? '' : $key); |
|
|
|
$order = isset($nav['order']) ? $nav['order'] : 100; |
|
|
|
$type = isset($nav['type']) ? $nav['type'] : 'link'; |
|
|
|
$route = $nav['route'] !== '' ? $this->urlGenerator->linkToRoute($nav['route']) : ''; |
|
|
|
|