Skip to content
Snippets Groups Projects
Commit 7b5a687d authored by Hendrik Grahl's avatar Hendrik Grahl
Browse files

Fixes upgrade issues in configuration.

parent 52ed3d3f
Branches
Tags
No related merge requests found
......@@ -90,3 +90,13 @@ function ldap_sso_update_8006() {
$config->save(TRUE);
}
/**
* Fix remaining non-boolean configuration fields.
*/
function ldap_sso_update_8007() {
$config_factory = \Drupal::configFactory();
$config = $config_factory->getEditable('ldap_sso.settings');
$config->set('seamlessLogin', (bool) $config->get('seamlessLogin'));
$config->set('ssoRemoteUserStripDomainName', (bool) $config->get('ssoRemoteUserStripDomainName'));
$config->save(TRUE);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment