NodeMoveAction: Properly check display values

This commit is contained in:
Johannes Meyer 2019-01-14 15:03:10 +01:00
parent 0d0ac5381e
commit ec14a7dbe1

View file

@ -94,8 +94,8 @@ class NodeMoveAction extends NodeAction
$this->error('Toplevel process "%s" not found', $name);
}
if ($config->getBpNode($name)->getDisplay() !== $this->from) {
$this->error('Toplevel process "%s" not found at position %d', $name, $this->from);
if ($config->getBpNode($name)->getDisplay() !== $this->from + 1) {
$this->error('Toplevel process "%s" not found at position %d', $name, $this->from + 1);
}
}