CRM-16996 missing parenteses on if when validating financial_type_id
authoreileenmcnaugton <eileen@fuzion.co.nz>
Tue, 25 Aug 2015 22:32:20 +0000 (10:32 +1200)
committereileenmcnaugton <eileen@fuzion.co.nz>
Wed, 26 Aug 2015 08:07:05 +0000 (20:07 +1200)
CRM/Member/Form/Membership.php

index 6da29b322f4cf92998c31a0089e4f893ce37c69c..6ac490245da7f16a6df64c67b1c3cf3214fe8263 100644 (file)
@@ -779,7 +779,7 @@ class CRM_Member_Form_Membership extends CRM_Member_Form {
         $errors['num_terms'] = ts('Please enter an integer for the number of terms.');
       }
 
-      if ($self->_mode || isset($params['record_contribution']) && empty($params['financial_type_id'])) {
+      if (($self->_mode || isset($params['record_contribution'])) && empty($params['financial_type_id'])) {
         $errors['financial_type_id'] = ts('Please enter the financial Type.');
       }
     }