Skip to content

Commit

Permalink
fix for setting on default settings array before config entity is cre…
Browse files Browse the repository at this point in the history
…ated.
  • Loading branch information
padams committed Jan 2, 2023
1 parent 3a5967f commit 62d3ff9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions modules/base/classes/settings.php
Expand Up @@ -448,8 +448,15 @@ function set($module, $key, $value) {
$values = $this->default_config;
}
$values[$module][$key] = $value;

$this->config->set('settings', $values);

if ( $this->config ) {

$this->config->set('settings', $values);

} else {

$this->default_config = $values;
}
}


Expand Down

0 comments on commit 62d3ff9

Please sign in to comment.