From: jitendrapurohit Date: Fri, 4 Mar 2016 11:56:59 +0000 (+0530) Subject: minor fix - handle multiple priceset X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=393530002cbf99f2b635fab1f36e1eb3a6b3309c;p=civicrm-core.git minor fix - handle multiple priceset --- diff --git a/CRM/Price/BAO/PriceFieldValue.php b/CRM/Price/BAO/PriceFieldValue.php index 840217ab55..9014684df7 100644 --- a/CRM/Price/BAO/PriceFieldValue.php +++ b/CRM/Price/BAO/PriceFieldValue.php @@ -310,8 +310,10 @@ WHERE cpse.id IS NOT NULL {$where}"; $lineItem->label = $prevLabel; $lineItem->find(); while ($lineItem->fetch()) { - $lineItem->label = $newLabel; - $lineItem->save(); + $lineItemParams['id'] = $lineItem->id; + $lineItemParams['label'] = $newLabel; + CRM_Price_BAO_LineItem::create($lineItemParams); + // update amount and fee level in civicrm_contribution and civicrm_participant $params = array( 1 => array(CRM_Core_DAO::VALUE_SEPARATOR . $prevLabel . ' -', 'String'),