From 91c44cc0a30ce414c879af891e40cb2500d36035 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Mon, 6 Feb 2017 10:36:08 +0530 Subject: [PATCH] fix test --- CRM/Price/BAO/PriceField.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CRM/Price/BAO/PriceField.php b/CRM/Price/BAO/PriceField.php index e7b64f96dd..969402bd73 100644 --- a/CRM/Price/BAO/PriceField.php +++ b/CRM/Price/BAO/PriceField.php @@ -104,12 +104,12 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField { // update previous field values( if any ) if ($fieldValue->find(TRUE)) { $optionsIds['id'] = $fieldValue->id; - } - //Update price_field_value label when edited inline. - if (!empty($params['id']) && $priceField->label != $fieldValue->label) { - $fieldValue->label = $priceField->label; - $fieldValue->save(); + //Update price_field_value label when edited inline. + if (!empty($params['id']) && $priceField->label != $fieldValue->label) { + $fieldValue->label = $priceField->label; + $fieldValue->save(); + } } } $defaultArray = array(); -- 2.25.1