X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPseudoConstant.php;h=255594e4659fb8f5eaa5c1c91d5744c8f097a9b4;hb=938854224e11b0d61889844c1ea78f7f99ced5a8;hp=99316fada86608698370556b9f7a43f4c35b90a8;hpb=c77f9b14576dbe8314a82b2e4f19a170d3cc1695;p=civicrm-core.git diff --git a/CRM/Core/PseudoConstant.php b/CRM/Core/PseudoConstant.php index 99316fada8..255594e465 100644 --- a/CRM/Core/PseudoConstant.php +++ b/CRM/Core/PseudoConstant.php @@ -358,7 +358,7 @@ class CRM_Core_PseudoConstant { $i18n->localizeArray($output, $I18nParams); // Maintain sort by label if ($order == "ORDER BY %2") { - CRM_Utils_Array::asort($output); + $output = CRM_Utils_Array::asort($output); } } CRM_Utils_Hook::fieldOptions($entity, $fieldName, $output, $params);