Merge pull request #22449 from mattwire/phpnotices
[civicrm-core.git] / templates / CRM / common / deferredFinancialType.tpl
index 0b8f6645c1582466ab42b5ab0aed32f79a74afbd..84f47c11e02adbb60e70058cc10c8f66a1ee666c 100644 (file)
@@ -7,12 +7,12 @@
  | and copyright information, see https://civicrm.org/licensing       |
  +--------------------------------------------------------------------+
 *}
-{if isset($deferredFinancialType)}
+{if $deferredFinancialType}
 <div id='warningDialog' style="display:none;"></div>
 {literal}
 <script type="text/javascript">
 CRM.$(function($) {
-  var more = $('.crm-button input.validate').click(function(e) {
+  var more = $('.crm-button.validate').click(function(e) {
     var message = "{/literal} {if $context eq 'Event'}
         {ts escape='js'}Note: Revenue for this event registration will not be deferred as the financial type does not have a deferred revenue account setup for it. If you want the revenue to be deferred, please select a different Financial Type with a Deferred Revenue account setup for it, or setup a Deferred Revenue account for this Financial Type.{/ts}
       {else if $context eq 'MembershipType'}