mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 14:50:11 -05:00
BpConfigForm: really store to disk now
This commit is contained in:
parent
c36fd5024e
commit
0fe35e3212
1 changed files with 23 additions and 1 deletions
|
|
@ -134,7 +134,29 @@ class BpConfigForm extends Form
|
|||
|
||||
Notification::success(sprintf('Process %s has been created', $name));
|
||||
} else {
|
||||
Notification::success(sprintf('Process %s has NOT YET been modified', $name));
|
||||
$config = $this->config;
|
||||
|
||||
if ($title) {
|
||||
$config->setTitle($title);
|
||||
}
|
||||
if ($backend) {
|
||||
$config->setBackendName($backend);
|
||||
}
|
||||
if ($this->getValue('state_type') === 'soft') {
|
||||
$config->useSoftStates();
|
||||
} else {
|
||||
$config->useHardStates();
|
||||
}
|
||||
|
||||
$this->storage->storeProcess($config);
|
||||
$config->clearAppliedChanges();
|
||||
$this->setRedirectUrl(
|
||||
Url::fromPath(
|
||||
$this->getRedirectUrl(),
|
||||
array('config' => $name)
|
||||
)
|
||||
);
|
||||
Notification::success(sprintf('Process %s has been stored', $name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue