From ef2709691efa3b07e96f2819468bceb47733375e Mon Sep 17 00:00:00 2001 From: colemanw Date: Tue, 19 Nov 2024 12:57:00 -0500 Subject: [PATCH] Avoid the dreaded limit=25 in api3 call --- CRM/Extendedreport/Page/Inline/ExtendedReportlets.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Extendedreport/Page/Inline/ExtendedReportlets.php b/CRM/Extendedreport/Page/Inline/ExtendedReportlets.php index 4c13968d..a245e9a5 100644 --- a/CRM/Extendedreport/Page/Inline/ExtendedReportlets.php +++ b/CRM/Extendedreport/Page/Inline/ExtendedReportlets.php @@ -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;