* Browse all financial types.
*/
public function browse() {
- // Check permission for Financial Type when ACL-FT is enabled
- if (CRM_Financial_BAO_FinancialType::isACLFinancialTypeStatus()
- && !CRM_Core_Permission::check('administer CiviCRM Financial Types')
- ) {
- CRM_Core_Error::statusBounce(ts('You do not have permission to access this page.'));
- }
// get all financial types sorted by weight
$financialType = [];
$dao = new CRM_Financial_DAO_FinancialType();
foreach ($financialAccountIds as $key => $values) {
if (!empty($financialAccounts[$values['financial_account_id']])) {
- $financialAccountId[$values['financial_account_id']] = CRM_Utils_Array::value(
- $values['financial_account_id'], $financialAccounts);
+ $financialAccountId[$values['financial_account_id']] = $financialAccounts[$values['financial_account_id']] ?? NULL;
}
}