CRM-16526 CIVI-3 Bug fix for exception
authorEdsel <edsel.lopez@jmaconsulting.biz>
Fri, 19 Feb 2016 12:09:04 +0000 (17:39 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Mon, 22 Feb 2016 18:11:38 +0000 (23:41 +0530)
----------------------------------------
* CRM-16526: ACLs for Financial Types
  https://issues.civicrm.org/jira/browse/CRM-16526

CRM/Price/BAO/LineItem.php

index 6b9f599f51ccf4aa91f82aca70adb8c5d38b51a2..d6150a69985049e421dac0e2f3ccedc71e39ff34 100644 (file)
@@ -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');
       }
     }