From 4dc4579e3119a769c18312bbf38fa8ca60f080bb Mon Sep 17 00:00:00 2001 From: "agbud8@zabuntu" Date: Wed, 10 Feb 2021 18:39:37 -0500 Subject: [PATCH] core#1132 - don't fire hook_civicrm_fieldOptions before hook_civicrm_config loads all files --- CRM/Core/I18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/I18n.php b/CRM/Core/I18n.php index 0c560c872324..18f445baafc0 100644 --- a/CRM/Core/I18n.php +++ b/CRM/Core/I18n.php @@ -184,7 +184,7 @@ public static function languages($justEnabled = FALSE) { static $enabled = NULL; if (!$all) { - $all = CRM_Contact_BAO_Contact::buildOptions('preferred_language'); + CRM_Core_OptionValue::getValues(['name' => 'languages'], $all, 'weight', TRUE); // get labels $rows = [];