From c36fd5024ef7bfecad3eccb17208e1a8a836439f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 16 Mar 2015 13:18:19 +0100 Subject: [PATCH] BpNode: handle "display" numeric --- library/Businessprocess/BpNode.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/Businessprocess/BpNode.php b/library/Businessprocess/BpNode.php index 469cddf..791090d 100644 --- a/library/Businessprocess/BpNode.php +++ b/library/Businessprocess/BpNode.php @@ -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,