fixes core#3013 - error when creating > 25 thank-you letters
authorJon Goldberg <jon@megaphonetech.com>
Wed, 29 Dec 2021 23:11:21 +0000 (18:11 -0500)
committerJon Goldberg <jon@megaphonetech.com>
Wed, 29 Dec 2021 23:11:21 +0000 (18:11 -0500)
CRM/Contribute/Form/Task/PDFLetter.php

index 6d0c932b5134b19d4f9313112af7619fec0cfa96..32f3ccb21c7da59dd73094cd84285edeabf9e88b 100644 (file)
@@ -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);