Smarty notice fix on Email help
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 11 Jan 2022 11:11:11 +0000 (00:11 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 11 Jan 2022 11:11:11 +0000 (00:11 +1300)
commit68eaf03cd3b6b054dc6380ccae20e6d2a216d370
tree64cdababbe76ebe3c4c7bdf4837f17eb0a4498d8
parent84f3dc304814cb5f8f386a20c25b294b40abf514
Smarty notice fix on Email help

I dug around a bit on how to deal with the endless 'params' notice in full-smarty-grump-mode
and I decided the help file was being called multiple times - so even if it is assigned in
the specific call for that id it isn't on the next call. I decided that
I could look up the setting & permission from within the template but only wanted to do it
once per template load so I split out a help file for that field (I didn't think
a whole directory structure was warranted to I added a folder 'Help' and then the
next folder is the main help filename with the file being the help id
15 files changed:
templates/CRM/Contact/Form/Task/Email.hlp
templates/CRM/Contact/Form/Task/Email.tpl
templates/CRM/Contact/Form/Task/Help/Email/id-from_email.hlp [new file with mode: 0644]
templates/CRM/Contribute/Form/AdditionalPayment.tpl
templates/CRM/Contribute/Form/Contribution.tpl
templates/CRM/Contribute/Form/Task/Invoice.hlp
templates/CRM/Contribute/Form/Task/Invoice.tpl
templates/CRM/Contribute/Form/Task/PDF.tpl
templates/CRM/Contribute/Form/Task/PDFLetter.tpl
templates/CRM/Event/Form/EventFees.tpl
templates/CRM/Event/Form/ParticipantFeeSelection.tpl
templates/CRM/Member/Form/Membership.hlp
templates/CRM/Member/Form/Membership.tpl
templates/CRM/Member/Form/MembershipRenewal.tpl
templates/CRM/Pledge/Form/Pledge.tpl