From d2860c547b1119a98a83561194af7370deabbcd7 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Mon, 2 Mar 2015 16:06:59 -0500 Subject: [PATCH] CRM-13584: After non-en_US installation in Drupal, revert settings to force defaults, otherwise the defaults will be NULL. --- install/index.php | 4 ++++ 1 file changed, 4 insertions(+) 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'], -- 2.25.1