From: monishdeb Date: Mon, 19 Oct 2015 05:48:12 +0000 (+0530) Subject: CRM-17396 fix - Editing a membership price set breaks auto-renew functionality X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6c9d1f1e0482828dc4f9f6faafc573055c140287;p=civicrm-core.git CRM-17396 fix - Editing a membership price set breaks auto-renew functionality https://issues.civicrm.org/jira/browse/CRM-17396 --- diff --git a/CRM/Price/Form/Field.php b/CRM/Price/Form/Field.php index 14c81e7178..e73f803b8f 100644 --- a/CRM/Price/Form/Field.php +++ b/CRM/Price/Form/Field.php @@ -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); }