Download invoice button on contribution view gives fatal error
My guess is it happened here: https://github.com/civicrm/civicrm-core/commit/f436aaf2501fbf20ed411e5976d2dd14c588d1b6#diff-b96eb626cc73750f3b681bd12d980236b7062d1633e9d067d3d00d07cdb37a98R243
TypeError: Argument 3 passed to CRM_Contribute_Form_Task_PDF::getElements() must be of the type array, int given, called in .../CRM/Contribute/Form/Task/Invoice.php on line 225 in CRM_Contribute_Form_Task_PDF::getElements() (line 243 in .../CRM/Contribute/Form/Task/PDF.php).
Probably it needs to be more tolerant that it could sometimes receive a single contact id not an array?