From 6c9d1f1e0482828dc4f9f6faafc573055c140287 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Mon, 19 Oct 2015 11:18:12 +0530 Subject: [PATCH] CRM-17396 fix - Editing a membership price set breaks auto-renew functionality https://issues.civicrm.org/jira/browse/CRM-17396 --- CRM/Price/Form/Field.php | 4 ---- 1 file changed, 4 deletions(-) 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); } -- 2.25.1