mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
IcingaTemplateChoice: fix hasBeenModified...
...this used to be true, once properties have been set
This commit is contained in:
parent
f1add44beb
commit
637a304f47
@ -155,7 +155,7 @@ class IcingaTemplateChoice extends IcingaObject implements ExportInterface
|
|||||||
|
|
||||||
public function hasBeenModified()
|
public function hasBeenModified()
|
||||||
{
|
{
|
||||||
if ($this->newChoices !== null && $this->choices !== $this->newChoices) {
|
if ($this->newChoices !== null && ($this->choices ?? $this->fetchChoices()) !== $this->newChoices) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user