Skip to content

Commit

Permalink
do not drop undefined settings when saving the configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed May 25, 2018
1 parent f37fd93 commit 53f3816
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/plugins/config/core/Configuration.php
Expand Up @@ -122,10 +122,13 @@ public function updateSettings($input) {
/**
* Save the settings
*
* This save the current state as defined in this object, including the
* undefined settings
*
* @throws \Exception
*/
public function save() {
$this->writer->save($this->settings);
$this->writer->save(array_merge($this->settings, $this->undefined));
}

/**
Expand Down

0 comments on commit 53f3816

Please sign in to comment.