CRM-15374 - Fix new regression on fix for balance calc when options are full.
authorDave Greenberg <dave@civicrm.org>
Fri, 3 Oct 2014 22:12:29 +0000 (15:12 -0700)
committerDave Greenberg <dave@civicrm.org>
Fri, 3 Oct 2014 22:12:29 +0000 (15:12 -0700)
----------------------------------------
* CRM-15374:
  https://issues.civicrm.org/jira/browse/CRM-15374

templates/CRM/Event/Form/ParticipantFeeSelection.tpl

index 79163bc48c83c1d7c68838c92cb09626a6369867..7224f9b77114a134fef8288e29a52e35b4f0a8fd 100644 (file)
@@ -27,7 +27,9 @@
 {literal}
 <script type='text/javascript'>
 function display(totalfee) {
-  totalfee += {/literal}{$optionFullTotalAmount}{literal};
+  {/literal}{if $optionFullTotalAmount}
+    totalfee += {$optionFullTotalAmount};{/if}
+  {literal};
   // totalfee is monetary, round it to 2 decimal points so it can
   // go as a float - CRM-13491
   totalfee = Math.round(totalfee*100)/100;