From 2808d9ccd7dca2c94c23dda9bd4e554dd483031d Mon Sep 17 00:00:00 2001 From: Edsel Date: Fri, 19 Feb 2016 17:43:02 +0530 Subject: [PATCH] CRM-16526 CIVI-3 Bug fix for default permission ---------------------------------------- * CRM-16526: ACLs for Financial Types https://issues.civicrm.org/jira/browse/CRM-16526 --- api/v3/LineItem.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/v3/LineItem.php b/api/v3/LineItem.php index d9a503504e..e35e22d343 100644 --- a/api/v3/LineItem.php +++ b/api/v3/LineItem.php @@ -88,7 +88,9 @@ function civicrm_api3_line_item_get($params) { elseif (!in_array($params['financial_type_id'], array_keys($types))) { $invalidFts = $params['financial_type_id']; } - $params['financial_type_id'] = array('NOT IN' => $invalidFts); + if ($invalidFts) { + $params['financial_type_id'] = array('NOT IN' => $invalidFts); + } } } return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params); -- 2.25.1