diff --git a/CRM/Core/BAO/Mapping.php b/CRM/Core/BAO/Mapping.php index a74e2ed0c96e4a9abf4637017ffed65aa63ff37c..4eca12bb0d11cc2f188753f9044f487549d145e9 100644 --- a/CRM/Core/BAO/Mapping.php +++ b/CRM/Core/BAO/Mapping.php @@ -560,6 +560,11 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping { foreach ($sel1 as $key => $sel) { if ($key) { + // sort everything BUT the contactType which is sorted seperately by + // an initial commit of CRM-13278 (check ksort above) + if (!in_array($key, $contactType)) { + asort($mapperFields[$key]); + } $sel2[$key] = array('' => ts('- select field -')) + $mapperFields[$key]; } }