IcingaTemplateChoice: fix hasBeenModified...

...this used to be true, once properties have been set
This commit is contained in:
Thomas Gelf 2023-03-07 11:43:41 +01:00
parent f1add44beb
commit 637a304f47

View File

@ -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;
}