diff --git a/CRM/Core/BAO/Mapping.php b/CRM/Core/BAO/Mapping.php index 4aeb934a1cf1..dd0710a6dfa4 100644 --- a/CRM/Core/BAO/Mapping.php +++ b/CRM/Core/BAO/Mapping.php @@ -115,7 +115,13 @@ public static function add($params) { * Array of mapping names, keyed by id. */ public static function getMappings($mappingType) { - $result = civicrm_api3('Mapping', 'get', array('mapping_type_id' => $mappingType, 'options' => array('sort' => 'name'))); + $result = civicrm_api3('Mapping', 'get', array( + 'mapping_type_id' => $mappingType, + 'options' => array( + 'sort' => 'name', + 'limit' => 0, + ), + )); $mapping = array(); foreach ($result['values'] as $key => $value) {