dev/core#4080 Fix wrong pdf format selection for invoice, when configured
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 10 Feb 2023 01:44:32 +0000 (14:44 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 10 Feb 2023 03:43:30 +0000 (16:43 +1300)
commiteb830fb9054c397abe4c2c08149b2f42e234d4c3
tree49f68ff8ae398369843760ce3355435a75636605
parent61a860a2bf1da5c8f50fa747ae553b45917b437d
dev/core#4080 Fix wrong pdf format selection for invoice, when configured

To replicate this I

1) created a new pdf format at civicrm/admin/pdfFormats?reset=1 with a top margin
of about 6 metres
2) edited the invoice MessageTemplate to use this pdf format
3) enabled invoicing
4) generated a pdf from the user dashboard
5) lots of white space.....
6) reset the invoice MessageTemplate not to have a selected pdf
7) it looked ... normal
CRM/Contribute/Form/Task/Invoice.php
CRM/Core/BAO/MessageTemplate.php
CRM/Core/BAO/PdfFormat.php