From 8c3a1fd9a56e2161648113d531a4f0f0247634f6 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 17 Sep 2022 10:15:31 +1200 Subject: [PATCH] Pass correct variable type to CRM_Core_OptionValue::getValues --- CRM/Core/I18n.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Core/I18n.php b/CRM/Core/I18n.php index 23ce9e18d3..b1aa48974a 100644 --- a/CRM/Core/I18n.php +++ b/CRM/Core/I18n.php @@ -179,6 +179,7 @@ class CRM_Core_I18n { static $enabled = NULL; if (!$all) { + $optionValues = []; // Use `getValues`, not `buildOptions` to bypass hook_civicrm_fieldOptions. See core#1132. CRM_Core_OptionValue::getValues(['name' => 'languages'], $optionValues, 'weight', TRUE); $all = array_column($optionValues, 'label', 'name'); -- 2.25.1