mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-30 02:19:34 -05:00
Merge pull request #73 from xam-stephan/xam-stephan-patch-1
Menu: always show first 5 configured entries
This commit is contained in:
commit
0b2f4f1c75
1 changed files with 1 additions and 2 deletions
|
|
@ -16,12 +16,11 @@ try {
|
|||
|
||||
$prio = 0;
|
||||
foreach ($storage->listProcessNames() as $name) {
|
||||
$prio++;
|
||||
|
||||
$meta = $storage->loadMetadata($name);
|
||||
if ($meta->get('AddToMenu') === 'no') {
|
||||
continue;
|
||||
}
|
||||
$prio++;
|
||||
|
||||
if ($prio > 5) {
|
||||
$section->add(N_('Show all'), array(
|
||||
|
|
|
|||
Loading…
Reference in a new issue