mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
process/config: Preserve display mode when storing changes
This commit is contained in:
parent
6c83fee2d6
commit
de3e0e5b6c
2 changed files with 8 additions and 4 deletions
|
|
@ -314,7 +314,12 @@ class ProcessController extends Controller
|
|||
$bp->countChanges()
|
||||
))->add(Html::tag(
|
||||
'a',
|
||||
['href' => Url::fromPath('businessprocess/process/config', ['config' => $bp->getName()])],
|
||||
[
|
||||
'href' => Url::fromPath(
|
||||
'businessprocess/process/config',
|
||||
$this->getRequest()->getUrl()->getParams()->toArray(false)
|
||||
)
|
||||
],
|
||||
$this->translate('Store')
|
||||
))->add(Html::tag(
|
||||
'a',
|
||||
|
|
@ -422,8 +427,8 @@ class ProcessController extends Controller
|
|||
->add($this->createConfigActionBar($bp));
|
||||
|
||||
$url = Url::fromPath(
|
||||
'businessprocess/process/show?unlocked',
|
||||
array('config' => $bp->getName())
|
||||
'businessprocess/process/show',
|
||||
$this->getRequest()->getUrl()->getParams()->toArray(false)
|
||||
);
|
||||
$this->content()->add(
|
||||
$this->loadForm('bpConfig')
|
||||
|
|
|
|||
|
|
@ -176,7 +176,6 @@ class BpConfigForm extends BpConfigBaseForm
|
|||
|
||||
$this->storage->storeProcess($config);
|
||||
$config->clearAppliedChanges();
|
||||
$this->setSuccessUrl('businessprocess/process/show', array('config' => $name, 'unlocked' => '1'));
|
||||
parent::onSuccess();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue