From 71fb738016e08b3f201e6550a4b10c37caccf0a1 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 14 Feb 2019 14:26:20 +0100 Subject: [PATCH] ProcessController: Properly handle spaces in node names --- application/controllers/ProcessController.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/application/controllers/ProcessController.php b/application/controllers/ProcessController.php index 0a7bea4..61633d1 100644 --- a/application/controllers/ProcessController.php +++ b/application/controllers/ProcessController.php @@ -316,10 +316,8 @@ class ProcessController extends Controller ))->add(Html::tag( 'a', [ - 'href' => Url::fromPath( - 'businessprocess/process/config', - $this->getRequest()->getUrl()->getParams()->toArray(false) - ) + 'href' => Url::fromPath('businessprocess/process/config') + ->setParams($this->getRequest()->getUrl()->getParams()) ], $this->translate('Store') ))->add(Html::tag( @@ -427,10 +425,8 @@ class ProcessController extends Controller ->add(Html::tag('h1', null, $title)) ->add($this->createConfigActionBar($bp)); - $url = Url::fromPath( - 'businessprocess/process/show', - $this->getRequest()->getUrl()->getParams()->toArray(false) - ); + $url = Url::fromPath('businessprocess/process/show') + ->setParams($this->getRequest()->getUrl()->getParams()); $this->content()->add( $this->loadForm('bpConfig') ->setProcessConfig($bp)