IcingaMultiEditForm: store modifications to branch

...when being in a branch
This commit is contained in:
Thomas Gelf 2022-02-06 19:14:35 +01:00
parent 43dddc58aa
commit 9269b054f2
1 changed files with 4 additions and 2 deletions

View File

@ -150,10 +150,11 @@ class IcingaMultiEditForm extends DirectorObjectForm
protected function storeModifiedObjects()
{
$modified = 0;
$store = $this->getDbObjectStore();
foreach ($this->objects as $object) {
if ($object->hasBeenModified()) {
$modified++;
$object->store();
$store->store($object);
}
}
@ -309,8 +310,9 @@ class IcingaMultiEditForm extends DirectorObjectForm
$this->translate($this->object->getShortTableName())
);
$store = $this->getDbObjectStore();
foreach ($this->objects as $object) {
$object->delete();
$store->delete($object);
}
if ($this->listUrl) {