CRM-14450 - fix notice on additional participants form.
authorDave Greenberg <dave@civicrm.org>
Wed, 9 Apr 2014 20:34:57 +0000 (13:34 -0700)
committerDave Greenberg <dave@civicrm.org>
Wed, 9 Apr 2014 20:34:57 +0000 (13:34 -0700)
----------------------------------------
* CRM-14450:
  https://issues.civicrm.org/jira/browse/CRM-14450

CRM/Event/Form/Registration/Register.php

index a20c29aeca2d0d1ea957888e6e5c90920b4baa4e..3438149ab0488dd7708585abaab4a2681832f15b 100644 (file)
@@ -549,13 +549,13 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration {
   static public function buildAmount(&$form, $required = TRUE, $discountId = NULL) {
     // build amount only when needed, skip incase of event full and waitlisting is enabled
     // and few other conditions check preProcess()
-    if ($form->_noFees) {
+    if (!empty($form->_noFees)) {
       return;
     }
 
     //if payment done, no need to build the fee block.
     if (!empty($form->_paymentId)) {
-      //fix to diaplay line item in update mode.
+      //fix to display line item in update mode.
       $form->assign('priceSet', isset($form->_priceSet) ? $form->_priceSet : NULL);
       return;
     }