From 06337311f4b8d80b8b06af7d2c50e3508e6c6ebb Mon Sep 17 00:00:00 2001 From: MiyaNoctem Date: Wed, 5 Oct 2016 14:35:46 -0500 Subject: [PATCH] Update Event.php --- CRM/Event/BAO/Event.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index 7ee9e0701a..ceb7cf7223 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -99,13 +99,6 @@ class CRM_Event_BAO_Event extends CRM_Event_DAO_Event { if (!empty($params['financial_type_id'])) { CRM_Financial_BAO_FinancialAccount::validateFinancialType($params['financial_type_id']); } - - $isError = CRM_Financial_BAO_FinancialAccount::validateFinancialType( - CRM_Utils_Array::value('financial_type_id', $params) - ); - if ($isError) { - throw new CRM_Core_Exception(ts('Deferred revenue account is not configured for selected financial type. Please have an administrator set up the deferred revenue account at Administer > CiviContribute > Financial Accounts, then configure it for financial types at Administer > CiviContribution > Financial Types, Accounts')); - } $event = new CRM_Event_DAO_Event(); -- 2.25.1