diff --git a/CRM/Price/BAO/PriceField.php b/CRM/Price/BAO/PriceField.php index e7b64f96ddf6..969402bd73e3 100644 --- a/CRM/Price/BAO/PriceField.php +++ b/CRM/Price/BAO/PriceField.php @@ -104,12 +104,12 @@ public static function create(&$params) { // 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();