From 6520b1acb27680dbe19d410f03ee1fcb5979fd99 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 11 May 2023 18:22:58 +0100 Subject: [PATCH] Fixed fatal error when importing membership --- CRM/Member/Import/Parser/Membership.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Member/Import/Parser/Membership.php b/CRM/Member/Import/Parser/Membership.php index 84b6edb729..7d7348bc2a 100644 --- a/CRM/Member/Import/Parser/Membership.php +++ b/CRM/Member/Import/Parser/Membership.php @@ -326,7 +326,7 @@ class CRM_Member_Import_Parser_Membership extends CRM_Import_Parser { } if ($formatted['status_id'] != $calcStatus['id']) { //Status Hold" is either NOT mapped or is FALSE - throw new CRM_Core_Exception($rowNumber, 'ERROR', 'Status in import row (' . CRM_Utils_Array::value('status_id', $formatValues) . ') does not match calculated status based on your configured Membership Status Rules (' . $calcStatus['name'] . '). Record was not imported.', CRM_Import_Parser::ERROR); + throw new CRM_Core_Exception('Status in import row (' . CRM_Utils_Array::value('status_id', $formatValues) . ') does not match calculated status based on your configured Membership Status Rules (' . $calcStatus['name'] . '). Record was not imported.', CRM_Import_Parser::ERROR); } } -- 2.25.1