From 5e71e542ba5117647971653c9e7d90871e03a0c3 Mon Sep 17 00:00:00 2001 From: mgbdev Date: Thu, 14 Nov 2013 17:51:40 +0530 Subject: [PATCH] CRM-10025:Price Set Error --- CRM/Price/Page/Set.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CRM/Price/Page/Set.php b/CRM/Price/Page/Set.php index d5767a0605..a0a7c9cbdd 100644 --- a/CRM/Price/Page/Set.php +++ b/CRM/Price/Page/Set.php @@ -276,8 +276,13 @@ class CRM_Price_Page_Set extends CRM_Core_Page { CRM_Utils_Array::value('extends', $priceSet[$dao->id]) ); $extends = array(); - foreach ($compIds as $compId) $extends[] = $comps[CRM_Core_Component::getComponentName($compId)]; - $priceSet[$dao->id]['extends'] = implode(', ', $extends); + //CRM-10225 + foreach ($compIds as $compId) { + if (!empty($comps[CRM_Core_Component::getComponentName($compId)])) { + $extends[] = $comps[CRM_Core_Component::getComponentName($compId)]; + } + } + $priceSet[$dao->id]['extends'] = implode(', ', $extends); // form all action links $action = array_sum(array_keys($this->actionLinks())); -- 2.25.1