IcingaArguments: be unmodified when loaded from db

fixes #2660
This commit is contained in:
Thomas Gelf 2023-08-21 12:44:59 +02:00
parent 907d93ebe9
commit 8896e54d69
2 changed files with 7 additions and 0 deletions

View File

@ -33,6 +33,9 @@ This version hasn't been released yet
* FEATURE: CIDR notation (network ranges) is supported in such filters (#2757)
* FIX: synchronizing Service (and -Set) Templates has been fixed (#2745, #2217)
### REST API
* FIX: Commands give 304 w/o ghost changes for same properties (#2660)
### Permissions and Restrictions
* FIX: monitoring-related permission checks have been refactored (#2712)
* FIX: Hostgroup-Filters have not been applied to Overview tables (#2775)

View File

@ -296,6 +296,7 @@ class IcingaArguments implements Iterator, Countable, IcingaConfigRenderer
$this->arguments = IcingaCommandArgument::loadAll($connection, $query, 'argument_name');
$this->cloneStored();
$this->refreshIndex();
$this->modified = false;
return $this;
}
@ -360,6 +361,7 @@ class IcingaArguments implements Iterator, Countable, IcingaConfigRenderer
}
$this->refreshIndex();
$this->cloneStored();
$this->modified = false;
}
/**
@ -393,7 +395,9 @@ class IcingaArguments implements Iterator, Countable, IcingaConfigRenderer
unset($this->arguments[$key]);
}
$this->refreshIndex();
$this->cloneStored();
$this->modified = false;
return $this;
}