mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
IniRepository: don't persist the key column as regular column
This commit is contained in:
parent
418a428f1e
commit
5212b6bab9
@ -118,6 +118,9 @@ abstract class IniRepository extends Repository implements Extensible, Updatable
|
||||
}
|
||||
}
|
||||
|
||||
// This is necessary as the query result set contains the key column.
|
||||
unset($config->$keyColumn);
|
||||
|
||||
if ($newSection) {
|
||||
if ($this->ds->hasSection($newSection)) {
|
||||
throw new StatementException(t('Cannot update. Section "%s" does already exist'), $newSection);
|
||||
|
Loading…
x
Reference in New Issue
Block a user