CRM-13278
authoryashodha <yashodha.chaku@webaccess.co.in>
Mon, 26 Aug 2013 10:09:52 +0000 (15:39 +0530)
committeryashodha <yashodha.chaku@webaccess.co.in>
Mon, 26 Aug 2013 10:09:52 +0000 (15:39 +0530)
CRM/Core/BAO/Mapping.php

index cd28f41a1db8fd8538baefc17cbb637cba8c36e5..daea5f6dfa139da1e6b7e5862545f9c758d0c4bd 100644 (file)
@@ -328,7 +328,7 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping {
 
       // exclude the address options disabled in the Address Settings
       $fields[$value] = CRM_Core_BAO_Address::validateAddressOptions($contactFields);
-
+      ksort($fields[$value]);
       if ($mappingType == 'Export') {
         $relationships = array();
         $relationshipTypes = CRM_Contact_BAO_Relationship::getContactRelationshipType(NULL, NULL, NULL, $value);
@@ -560,7 +560,6 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping {
 
     foreach ($sel1 as $key => $sel) {
       if ($key) {
-        asort($mapperFields[$key]);
         $sel2[$key] = array('' => ts('- select field -')) + $mapperFields[$key];
       }
     }