----------------------------------------
* CRM-16526: ACLs for Financial Types
https://issues.civicrm.org/jira/browse/CRM-16526
if (CRM_Financial_BAO_FinancialType::isACLFinancialTypeStatus()) {
if (empty($params['id'])) {
- $op = 'add';
+ $op = CRM_Core_Action::ADD;
}
else {
if (empty($params['financial_type_id'])) {
'return' => 'financial_type_id',
));
}
- $op = 'edit';
+ $op = CRM_Core_Action::UPDATE;
}
CRM_Financial_BAO_FinancialType::getAvailableFinancialTypes($types, $op);
if (!in_array($params['financial_type_id'], array_keys($types))) {