From 076809e3db3c308d9cda8f85d3e105a2e9b5e0d4 Mon Sep 17 00:00:00 2001 From: Johan Vervloet Date: Tue, 25 Nov 2014 13:44:28 +0100 Subject: [PATCH] CRM-15636: I think this patch fixes the issue. I basically did a CRM_Utils_Array::implodePadded on 'extends'. But I am not sure whether I did this at the right place (in the PriceSet BAO). ---------------------------------------- * CRM-15636: Using the API to create a price set for both events and contributions. https://issues.civicrm.org/jira/browse/CRM-15636 --- CRM/Price/BAO/PriceSet.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Price/BAO/PriceSet.php b/CRM/Price/BAO/PriceSet.php index a071a7925b..d2412a2083 100644 --- a/CRM/Price/BAO/PriceSet.php +++ b/CRM/Price/BAO/PriceSet.php @@ -67,6 +67,9 @@ class CRM_Price_BAO_PriceSet extends CRM_Price_DAO_PriceSet { if(empty($params['id']) && empty($params['name'])) { $params['name'] = CRM_Utils_String::munge($params['title'], '_', 242); } + if (!empty($params['extends'])) { + $params['extends'] = CRM_Utils_Array::implodePadded($params['extends']); + } $priceSetBAO = new CRM_Price_BAO_PriceSet(); $priceSetBAO->copyValues($params); if (self::eventPriceSetDomainID()) { -- 2.25.1