From b46a633d6d10529a2fe8fa717587a2b4856df48f Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 10 Jan 2019 15:44:50 +0100 Subject: [PATCH] ProcessController: Provide a new set of parameters when redirecting --- application/controllers/ProcessController.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/application/controllers/ProcessController.php b/application/controllers/ProcessController.php index 73e0e8d..3948a3d 100644 --- a/application/controllers/ProcessController.php +++ b/application/controllers/ProcessController.php @@ -251,9 +251,14 @@ class ProcessController extends Controller ->setSimulation(Simulation::fromSession($this->session())) ->handleRequest(); } elseif ($action === 'move') { - $url = Url::fromRequest()->without(['action', 'movenode']); - if ($url->getParam('mode') === 'tree') { - $url = $url->without('node'); + $url = Url::fromPath('businessprocess/process/show', ['config' => $bp->getName()]); + if ($this->url()->hasParam('unlocked')) { + $url->setParam('unlocked', $this->url()->getParam('unlocked')); + } + if ($this->url()->hasParam('mode')) { + $url->setParam('mode', $this->url()->getParam('mode')); + } elseif ($this->url()->hasParam('node')) { + $url->setParam('node', $this->url()->getParam('node')); } $form = $this->loadForm('MoveNode')