mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
DirectorObjectForm: redirect to newly created objects
This commit is contained in:
parent
eea642bd1c
commit
988eb4bf77
@ -365,7 +365,14 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
{
|
||||
$object = $this->object();
|
||||
if ($object->hasBeenModified()) {
|
||||
|
||||
if (! $object->hasBeenLoadedFromDb()) {
|
||||
if ($object instanceof IcingaObject) {
|
||||
$this->setSuccessUrl(
|
||||
'director/' . strtolower($this->getObjectName()),
|
||||
array('name' => $object->object_name)
|
||||
);
|
||||
}
|
||||
}
|
||||
$msg = sprintf(
|
||||
$object->hasBeenLoadedFromDb()
|
||||
? $this->translate('The %s has successfully been stored')
|
||||
|
Loading…
x
Reference in New Issue
Block a user