process/config: Preserve display mode when storing changes

This commit is contained in:
Johannes Meyer 2019-01-08 13:50:51 +01:00
parent 6c83fee2d6
commit de3e0e5b6c
2 changed files with 8 additions and 4 deletions

View file

@ -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')

View file

@ -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();
}