Skip to content

Commit

Permalink
Merge pull request #586 from colemanw/dreaded25
Browse files Browse the repository at this point in the history
Avoid the dreaded limit=25 in api3 call
  • Loading branch information
eileenmcnaughton authored Nov 20, 2024
2 parents f0a8351 + ef27096 commit 7fa2d9b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CRM/Extendedreport/Page/Inline/ExtendedReportlets.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ public function run() {
public static function getReportsToDisplay() {
$reportlets = Civi::cache()->get(__CLASS__ . 'contact_summary_reportlets');
if ($reportlets === NULL) {
$reportlets = civicrm_api3('ReportInstance', 'get', ['form_values' => ['LIKE' => '%contact_reportlet";s:1:"1";%']])['values'];
$reportlets = civicrm_api3('ReportInstance', 'get', [
'form_values' => ['LIKE' => '%contact_reportlet";s:1:"1";%'],
'options' => ['limit' => 0],
])['values'];
Civi::cache()->set(__CLASS__ . 'contact_summary_reportlets', $reportlets);
}
return $reportlets;
Expand Down

0 comments on commit 7fa2d9b

Please sign in to comment.