diff --git a/library/Icinga/Repository/IniRepository.php b/library/Icinga/Repository/IniRepository.php index 5caf91d2c..7e6506f78 100644 --- a/library/Icinga/Repository/IniRepository.php +++ b/library/Icinga/Repository/IniRepository.php @@ -302,7 +302,9 @@ abstract class IniRepository extends Repository implements Extensible, Updatable $newConfig = clone $config; foreach ($newData as $column => $value) { if ($column === $keyColumn) { - $newSection = $value; + if ($value !== $config->get($keyColumn)) { + $newSection = $value; + } } else { $newConfig->$column = $value; }