mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-16 17:52:52 -05:00
ProcessController: Provide a new set of parameters when redirecting
This commit is contained in:
parent
eac7f3e76f
commit
b46a633d6d
1 changed files with 8 additions and 3 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue