CRM-17396 fix - Editing a membership price set breaks auto-renew functionality
authormonishdeb <monish.deb@webaccessglobal.com>
Mon, 19 Oct 2015 05:48:12 +0000 (11:18 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Mon, 19 Oct 2015 05:48:12 +0000 (11:18 +0530)
https://issues.civicrm.org/jira/browse/CRM-17396

CRM/Price/Form/Field.php

index 14c81e7178008c04ac828a6c11d5f4e8ed103f80..e73f803b8f0e10619b54eda1c4b17dce6bd3d5d0 100644 (file)
@@ -634,10 +634,6 @@ class CRM_Price_Form_Field extends CRM_Core_Form {
       if ($this->_fid) {
         $oldWeight = CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceField', $this->_fid, 'weight', 'id');
       }
-      else {
-        //CRM-17396, fetch name from label only on adding price field, not on update
-        $params['name'] = CRM_Utils_String::titleToVar($params['label']);
-      }
       $params['weight'] = CRM_Utils_Weight::updateOtherWeights('CRM_Price_DAO_PriceField', $oldWeight, $params['weight'], $fieldValues);
     }