From 9269b054f20fb737d80b1ff925f94871e33d838f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 6 Feb 2022 19:14:35 +0100 Subject: [PATCH] IcingaMultiEditForm: store modifications to branch ...when being in a branch --- application/forms/IcingaMultiEditForm.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/forms/IcingaMultiEditForm.php b/application/forms/IcingaMultiEditForm.php index 1c04c02f..4149a708 100644 --- a/application/forms/IcingaMultiEditForm.php +++ b/application/forms/IcingaMultiEditForm.php @@ -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) {