mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-04 01:09:25 -05:00
just count $prio if not continue (AddToMenu >= 'no')
This commit is contained in:
parent
4c9399d321
commit
0b0b7ad0e0
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