Swap displayName smarty for {contact.display_name token}
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 16 Jul 2021 02:27:29 +0000 (14:27 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 22 Jul 2021 23:24:36 +0000 (11:24 +1200)
commit24dac2ae3533dc7d5f78d744f1e93992f696fad2
treea531de7e931d29851f1dedaf91d1a7481037843d
parent46b9500e78692ad470c94cbff8b75549644df792
Swap displayName smarty for {contact.display_name token}

This swaps over the smartyToken for the token token on the template added on new installs, and adds a test.

Separately I will look at an upgrade script and other templates

To test make sure you enable invoicing & then generate an invoice from search results.
use the demo site due to aforementioned lack of upgrade and check the display name is still on
the left hand side
Civi/Test/ContactTestTrait.php
sql/civicrm_generated.mysql
tests/phpunit/CRM/Contribute/Form/Task/InvoiceTest.php
tests/templates/message_templates/contribution_invoice_receipt_html.tpl [new file with mode: 0644]
xml/templates/message_templates/contribution_invoice_receipt_html.tpl