From a5ba7508df4ee3ffbb8bb2b38042b6b1bd03a07c Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Wed, 29 Dec 2021 18:11:21 -0500 Subject: [PATCH] fixes core#3013 - error when creating > 25 thank-you letters --- CRM/Contribute/Form/Task/PDFLetter.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Contribute/Form/Task/PDFLetter.php b/CRM/Contribute/Form/Task/PDFLetter.php index 6d0c932b51..32f3ccb21c 100644 --- a/CRM/Contribute/Form/Task/PDFLetter.php +++ b/CRM/Contribute/Form/Task/PDFLetter.php @@ -360,6 +360,7 @@ class CRM_Contribute_Form_Task_PDFLetter extends CRM_Contribute_Form_Task { $resolvedContacts = civicrm_api3('Contact', 'get', [ 'return' => array_keys($returnProperties), 'id' => ['IN' => array_keys($contacts)], + 'options' => ['limit' => 0], ])['values']; foreach ($contacts as $contactID => $contact) { $contacts[$contactID] = array_merge($resolvedContacts[$contactID], $contact); -- 2.25.1