From 1e6dcc01c59d88fba809bd1e8334332970fdec28 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Sat, 5 Sep 2020 00:20:38 +0100 Subject: [PATCH] Fixed pre hook params for LineItem --- CRM/Price/BAO/LineItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Price/BAO/LineItem.php b/CRM/Price/BAO/LineItem.php index 0067fef0a6..bffcccbe47 100644 --- a/CRM/Price/BAO/LineItem.php +++ b/CRM/Price/BAO/LineItem.php @@ -37,7 +37,7 @@ class CRM_Price_BAO_LineItem extends CRM_Price_DAO_LineItem { CRM_Utils_Hook::pre('edit', 'LineItem', $id, $params); } else { - CRM_Utils_Hook::pre('create', 'LineItem', $params['entity_id'], $params); + CRM_Utils_Hook::pre('create', 'LineItem', $id, $params); } // unset entity table and entity id in $params -- 2.25.1