Fix Setting 'is_active' Param For Price Set For Type Text
authorvarshith89 <vinu@compucorp.co.uk>
Wed, 12 Dec 2018 19:43:28 +0000 (19:43 +0000)
committervarshith89 <vinu@compucorp.co.uk>
Wed, 12 Dec 2018 19:43:28 +0000 (19:43 +0000)
CRM/Price/Form/Field.php

index 08b36bf6a887ac50563ab1f556459dd58834bae4..edd9969ed8ae856f380fdf72f94a1ad873810c64 100644 (file)
@@ -689,7 +689,7 @@ class CRM_Price_Form_Field extends CRM_Core_Form {
       $params['option_weight'] = array(1 => $params['weight']);
       $params['option_financial_type_id'] = array(1 => $params['financial_type_id']);
       $params['option_visibility_id'] = array(1 => CRM_Utils_Array::value('visibility_id', $params));
-      $params['is_active'] = array(1 => 1);
+      $params['is_active'] = array(1 => $params['is_active']);
     }
 
     if ($this->_fid) {