mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
IcingaMultiEditForm: store modifications to branch
...when being in a branch
This commit is contained in:
parent
43dddc58aa
commit
9269b054f2
@ -150,10 +150,11 @@ class IcingaMultiEditForm extends DirectorObjectForm
|
|||||||
protected function storeModifiedObjects()
|
protected function storeModifiedObjects()
|
||||||
{
|
{
|
||||||
$modified = 0;
|
$modified = 0;
|
||||||
|
$store = $this->getDbObjectStore();
|
||||||
foreach ($this->objects as $object) {
|
foreach ($this->objects as $object) {
|
||||||
if ($object->hasBeenModified()) {
|
if ($object->hasBeenModified()) {
|
||||||
$modified++;
|
$modified++;
|
||||||
$object->store();
|
$store->store($object);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -309,8 +310,9 @@ class IcingaMultiEditForm extends DirectorObjectForm
|
|||||||
$this->translate($this->object->getShortTableName())
|
$this->translate($this->object->getShortTableName())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$store = $this->getDbObjectStore();
|
||||||
foreach ($this->objects as $object) {
|
foreach ($this->objects as $object) {
|
||||||
$object->delete();
|
$store->delete($object);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->listUrl) {
|
if ($this->listUrl) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user