Fix notices on manage premiums page
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 21 Nov 2023 04:55:36 +0000 (17:55 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 21 Nov 2023 05:01:39 +0000 (18:01 +1300)
commit8fa984856905311d3fd04414272abebda3b8cae4
tree288fce587c99eb581d54193de77cd4458abf3957
parent9b811619265f6e04506356c061d23536a4266f4b
Fix notices on manage premiums page

This addresses notices at
https://dmaster.localhost:32353/civicrm/admin/contribute/managePremiums?reset=1

These are probably also addressed by the admin ui / sk conversion but note that this also
covers the tab on the contribution page

Note that combined with https://github.com/civicrm/civicrm-core/pull/28238
this fixes most of the issues I encountered trying to configure a premimum
but there are still a bunch of notices when I attempt to use one.

Also, having switched to using apiv4 I have added some tpl escaping
CRM/Contribute/Page/ManagePremiums.php
templates/CRM/Contribute/Form/Contribution/PremiumBlock.tpl
templates/CRM/Contribute/Page/ManagePremiums.tpl
templates/CRM/Contribute/Page/Premium.tpl