mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 07:44:05 +02:00
parent
b8b047a1e4
commit
8c42e0f7d6
@ -51,12 +51,12 @@ class IcingaCloneObjectForm extends QuickForm
|
|||||||
$object->getConnection()
|
$object->getConnection()
|
||||||
)->set('object_name', $newname);
|
)->set('object_name', $newname);
|
||||||
|
|
||||||
$this->setSuccessUrl(
|
|
||||||
'director/' . strtolower($object->getShortTableName()),
|
|
||||||
$new->getUrlParams()
|
|
||||||
);
|
|
||||||
|
|
||||||
if ($new->store()) {
|
if ($new->store()) {
|
||||||
|
$this->setSuccessUrl(
|
||||||
|
'director/' . strtolower($object->getShortTableName()),
|
||||||
|
$new->getUrlParams()
|
||||||
|
);
|
||||||
|
|
||||||
$this->redirectOnSuccess($msg);
|
$this->redirectOnSuccess($msg);
|
||||||
} else {
|
} else {
|
||||||
$this->redirectOnFailure($msg);
|
$this->redirectOnFailure($msg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user