From 637a304f47fc4b22de8891a0cae01cb7cd163c4a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 7 Mar 2023 11:43:41 +0100 Subject: [PATCH] IcingaTemplateChoice: fix hasBeenModified... ...this used to be true, once properties have been set --- library/Director/Objects/IcingaTemplateChoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Objects/IcingaTemplateChoice.php b/library/Director/Objects/IcingaTemplateChoice.php index 1a1be903..56fd456e 100644 --- a/library/Director/Objects/IcingaTemplateChoice.php +++ b/library/Director/Objects/IcingaTemplateChoice.php @@ -155,7 +155,7 @@ class IcingaTemplateChoice extends IcingaObject implements ExportInterface public function hasBeenModified() { - if ($this->newChoices !== null && $this->choices !== $this->newChoices) { + if ($this->newChoices !== null && ($this->choices ?? $this->fetchChoices()) !== $this->newChoices) { return true; }