From 10b3287e65aa51677ce7583111bfbd45c7b77faa Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Thu, 10 Aug 2017 22:23:40 -0400 Subject: [PATCH] CRM-21057: pass limit to retrieve all mapping values --- CRM/Core/BAO/Mapping.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CRM/Core/BAO/Mapping.php b/CRM/Core/BAO/Mapping.php index 4aeb934a1c..dd0710a6df 100644 --- a/CRM/Core/BAO/Mapping.php +++ b/CRM/Core/BAO/Mapping.php @@ -115,7 +115,13 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping { * 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) { -- 2.25.1