From: Edsel Date: Fri, 19 Feb 2016 12:09:04 +0000 (+0530) Subject: CRM-16526 CIVI-3 Bug fix for exception X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f8acc36828070c24fffdc50f57b6d6c5d0f4d39b;p=civicrm-core.git CRM-16526 CIVI-3 Bug fix for exception ---------------------------------------- * CRM-16526: ACLs for Financial Types https://issues.civicrm.org/jira/browse/CRM-16526 --- diff --git a/CRM/Price/BAO/LineItem.php b/CRM/Price/BAO/LineItem.php index 6b9f599f51..d6150a6998 100644 --- a/CRM/Price/BAO/LineItem.php +++ b/CRM/Price/BAO/LineItem.php @@ -72,7 +72,7 @@ class CRM_Price_BAO_LineItem extends CRM_Price_DAO_LineItem { if (CRM_Financial_BAO_FinancialType::isACLFinancialTypeStatus()) { CRM_Financial_BAO_FinancialType::getAvailableFinancialTypes($types, $op); if (!in_array($params['financial_type_id'], array_keys($types))) { - throw new API_Exception('You do not have permission to create this line item'); + throw new Exception('You do not have permission to create this line item'); } }