Can't create > 25 thank-you letters from contributions
This is a regression in 5.44 from https://github.com/civicrm/civicrm-core/pull/21816. API3 25 record limit bug.
Steps to replicate
- Do a contribution search that yields > 25 records.
- Create PDF thank-you letters from all records.
Get this error:
TypeError: Argument 2 passed to CRM_Contribute_Form_Task_PDFLetter::resolveTokens() must be of the type int, null given, called in /home/jon/local/crcl/htdocs/sites/all/modules/civicrm/CRM/Contribute/Form/Task/PDFLetter.php on line 436 in CRM_Contribute_Form_Task_PDFLetter->resolveTokens() (line 553 of /home/jon/local/crcl/htdocs/sites/all/modules/civicrm/CRM/Contribute/Form/Task/PDFLetter.php).