CRM-21627: makeMultilingual: update dbLocale to avoid fatal if lcMessages was not...
authorMathieu Lutfy <mathieu@bidon.ca>
Sun, 7 Jan 2018 22:30:36 +0000 (17:30 -0500)
committerMathieu Lutfy <mathieu@bidon.ca>
Sun, 7 Jan 2018 22:30:36 +0000 (17:30 -0500)
CRM/Core/I18n/Schema.php

index 7efdc5103cd2015de236fa363939f544f26fb213..b795deacabd08f531e1caed4cd459381370951d9 100644 (file)
@@ -107,6 +107,9 @@ class CRM_Core_I18n_Schema {
     // update civicrm_domain.locales
     $domain->locales = $locale;
     $domain->save();
+
+    // CRM-21627 Updates the $dbLocale
+    CRM_Core_BAO_ConfigSetting::applyLocale(Civi::settings($domain->id), $domain->locales);
   }
 
   /**