From 7d3f62f6f046d752287a7217e444c937cd1fde11 Mon Sep 17 00:00:00 2001 From: CiviCRM Date: Wed, 18 Jun 2014 12:41:35 +0530 Subject: [PATCH] CRM-14867: fix notice when lineitem doesn't have corresponding contribution ID --- CRM/Price/BAO/LineItem.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Price/BAO/LineItem.php b/CRM/Price/BAO/LineItem.php index 12190098a5..b8eb7543de 100644 --- a/CRM/Price/BAO/LineItem.php +++ b/CRM/Price/BAO/LineItem.php @@ -325,7 +325,9 @@ AND li.entity_id = {$entityId} $line['contribution_id'] = $entityId; } else { - $line['contribution_id'] = $contributionDetails->id; + if (!empty($contributionDetails->id)) { + $line['contribution_id'] = $contributionDetails->id; + } } // if financial type is not set and if price field value is NOT NULL // get financial type id of price field value -- 2.25.1