CRM-10025:Price Set Error
authormgbdev <mgbdev@gmail.com>
Thu, 14 Nov 2013 12:21:40 +0000 (17:51 +0530)
committermgbdev <mgbdev@gmail.com>
Thu, 14 Nov 2013 12:52:04 +0000 (18:22 +0530)
CRM/Price/Page/Set.php

index d5767a06050cf38721f164b07130b99388e4f4a1..a0a7c9cbdd208c96cc492bd1f6e1ddd3b3d102a1 100644 (file)
@@ -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()));