Skip to content

Commit

Permalink
CRM-21057: pass limit to retrieve all mapping values
Browse files Browse the repository at this point in the history
  • Loading branch information
lcdservices committed Aug 11, 2017
1 parent 92b74cd commit 10b3287
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CRM/Core/BAO/Mapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 10b3287

Please sign in to comment.