From 393530002cbf99f2b635fab1f36e1eb3a6b3309c Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Fri, 4 Mar 2016 17:26:59 +0530 Subject: [PATCH] minor fix - handle multiple priceset --- CRM/Price/BAO/PriceFieldValue.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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'), -- 2.25.1