Fix missing quotes in tpl file
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 7 Oct 2023 00:43:30 +0000 (13:43 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 7 Oct 2023 00:43:30 +0000 (13:43 +1300)
This is a longstanding error rather than a regression - but it hard failes when
Smarty3 is enabled. Smarty3 is a pretty good tool for finding issues when testing
the rc it turns out (highlights variable errors in smarty)
so I'm fixing in the rc so as not to be blocked on using smarty with the rc

templates/CRM/Event/Form/ManageEvent/Fee.tpl

index e6c49250adb1e8183e5aac6e59f7219328028238..7162790c3e13248f6117f5d7a6d3935309e3f5b3 100644 (file)
 
     function warnDiscountDel( ) {
         if ( ! document.getElementsByName('is_discount')[0].checked ) {
-            CRM.alert('{/literal}{ts escape="js"}If you uncheck "Discounts by Signup Date" and Save this form, any existing discount sets will be deleted.{/ts} {ts escape="js"}This action cannot be undone.{/ts} {ts escape="js"}If this is NOT what you want to do, you can check "Discounts by Signup Date" again.{/ts}', '{ts escape="js}Warning{/ts}{literal}', 'alert', {expires: 0});
+            CRM.alert('{/literal}{ts escape="js"}If you uncheck "Discounts by Signup Date" and Save this form, any existing discount sets will be deleted.{/ts} {ts escape="js"}This action cannot be undone.{/ts} {ts escape="js"}If this is NOT what you want to do, you can check "Discounts by Signup Date" again.{/ts}', '{ts escape="js"}Warning{/ts}{literal}', 'alert', {expires: 0});
         }
     }