Skip to content
Snippets Groups Projects
Commit abf2d852 authored by Dave Greenberg's avatar Dave Greenberg
Browse files

Merge pull request #2348 from dlobo/CRM-13278

CRM-13278 - Select fields for export "- related contact info -" fields are not sorted properly
parents 167eb6bf 82a06bfc
No related branches found
No related tags found
No related merge requests found
......@@ -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];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment