mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-01 10:54:32 +02:00
Make sure that the 'version' attribute is updated when config attributes are changed
fixes #10355
This commit is contained in:
parent
14e37a0554
commit
74aa5c1d6b
@ -222,13 +222,12 @@ void ConfigObject::ModifyAttribute(const String& attr, const Value& value, bool
|
|||||||
|
|
||||||
SetField(fid, newValue);
|
SetField(fid, newValue);
|
||||||
|
|
||||||
if (updated_original_attributes) {
|
if (updateVersion && (field.Attributes & FAConfig))
|
||||||
if (updateVersion)
|
|
||||||
SetVersion(Utility::GetTime());
|
SetVersion(Utility::GetTime());
|
||||||
|
|
||||||
|
if (updated_original_attributes)
|
||||||
NotifyOriginalAttributes();
|
NotifyOriginalAttributes();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void ConfigObject::RestoreAttribute(const String& attr)
|
void ConfigObject::RestoreAttribute(const String& attr)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user