Add userEnteredText as generic workflow template smarty variable
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 25 Aug 2023 05:41:03 +0000 (17:41 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 1 Dec 2023 21:26:05 +0000 (10:26 +1300)
commit40bce8be4f6e64d7b4a3a5c65c361180d5fe197b
tree565f07498b43737340052a0d16e40c4a1683cbc9
parent88c59eeb60ffa4a8e2a882badf2ecd032a1cc5e2
Add userEnteredText as generic workflow template smarty variable

This makes userEnteredText a property across all WorkflowMessages - with it outputting
the smarty variable user_text

We already had receipt_text on the membership forms - but that is a bit too specific
- user is perhaps a bit impersonal - I did contemplate form_text :
16 files changed:
CRM/Contribute/Form/Task/Invoice.php
CRM/Core/BAO/MessageTemplate.php
CRM/Event/Form/Participant.php
CRM/Member/Form/Membership.php
CRM/Member/Form/MembershipRenewal.php
CRM/Member/WorkflowMessage/MembershipOfflineReceipt.php
Civi/WorkflowMessage/GenericWorkflowMessage.php
api/v3/Contribution.php
api/v3/MessageTemplate.php
tests/phpunit/CRM/Event/Form/ParticipantTest.php
tests/phpunit/CRM/Member/Form/MembershipRenewalTest.php
xml/templates/message_templates/contribution_invoice_receipt_html.tpl
xml/templates/message_templates/event_offline_receipt_html.tpl
xml/templates/message_templates/membership_offline_receipt_html.tpl
xml/templates/message_templates/membership_offline_receipt_text.tpl
xml/templates/message_templates/membership_online_receipt_html.tpl