mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-16 17:52:52 -05:00
BpNode: handle "display" numeric
This commit is contained in:
parent
e6161837a2
commit
c36fd5024e
1 changed files with 3 additions and 3 deletions
|
|
@ -212,7 +212,7 @@ class BpNode extends Node
|
|||
|
||||
public function setDisplay($display)
|
||||
{
|
||||
$this->display = $display;
|
||||
$this->display = (int) $display;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
@ -296,8 +296,8 @@ class BpNode extends Node
|
|||
$eq,
|
||||
implode(' ' . $op . ' ', $children)
|
||||
);
|
||||
if ($this->hasAlias()/* || $this->hasPrio()*/) {
|
||||
$prio = $this->display; // TODO: $this->getPrio() ??
|
||||
if ($this->hasAlias() || $this->getDisplay() > 0) {
|
||||
$prio = $this->getDisplay();
|
||||
$cfg .= sprintf(
|
||||
"display %s;%s;%s\n",
|
||||
$prio,
|
||||
|
|
|
|||
Loading…
Reference in a new issue