mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +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();
|
$object = $this->object();
|
||||||
if ($object->hasBeenModified()) {
|
if ($object->hasBeenModified()) {
|
||||||
|
if (! $object->hasBeenLoadedFromDb()) {
|
||||||
|
if ($object instanceof IcingaObject) {
|
||||||
|
$this->setSuccessUrl(
|
||||||
|
'director/' . strtolower($this->getObjectName()),
|
||||||
|
array('name' => $object->object_name)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
$msg = sprintf(
|
$msg = sprintf(
|
||||||
$object->hasBeenLoadedFromDb()
|
$object->hasBeenLoadedFromDb()
|
||||||
? $this->translate('The %s has successfully been stored')
|
? $this->translate('The %s has successfully been stored')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user