From: Mathieu Lutfy Date: Mon, 2 Mar 2015 21:06:59 +0000 (-0500) Subject: CRM-13584: After non-en_US installation in Drupal, revert settings to force defaults... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d2860c547b1119a98a83561194af7370deabbcd7;p=civicrm-core.git CRM-13584: After non-en_US installation in Drupal, revert settings to force defaults, otherwise the defaults will be NULL. --- diff --git a/install/index.php b/install/index.php index 2e2e6ff16c..77477eae50 100644 --- a/install/index.php +++ b/install/index.php @@ -1354,6 +1354,10 @@ class Installer extends InstallRequirements { //change the default language to one chosen if (isset($config['seedLanguage']) && $config['seedLanguage'] != 'en_US') { + // This ensures that defaults get set, otherwise the user will login + // and most configurations will be empty, not set to en_US defaults. + civicrm_api3('Setting', 'revert'); + civicrm_api3('Setting', 'create', array( 'domain_id' => 'current_domain', 'lcMessages' => $config['seedLanguage'],