Skip to content

Commit

Permalink
Fix limit on getting options
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Lott committed Jun 18, 2019
1 parent b20f14f commit 70e90d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CRM/ActivityTab.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function setConfig($config) {
$result = civicrm_api3('OptionValue', 'get', [
'return' => ['label', 'value', 'option_group_id'],
'option_group_id' => ['IN' => $option_group_ids],
'options' => ['limit' => 0],
]);

foreach ($option_group_ids as $col_1 => $option_group_id) {
Expand Down Expand Up @@ -274,6 +275,7 @@ public function flattenContacts(&$rows) {
}
}
if ($contact_ids) {
// Deliberately left default 25 limit in.
$contact_details = civicrm_api3( 'Contact', 'get', [
'id' => ['IN' => array_keys($contact_ids)],
'return' => 'display_name']);
Expand Down

0 comments on commit 70e90d9

Please sign in to comment.