Skip to content

financialTypeIsEligible($financialType) - explode() expects parameter 2 to be string, array given #102

@developer633

Description

@developer633

When deselecting - "Enable gift aid for line items of any financial type" , adding a contribution via the API causes financialTypeIsEligible($financialType) in SetContributionGiftAidEligibility.php to throw "explode() expects parameter 2 to be string, array given" on the line
$eligibleFinancialTypes = explode(',', CRM_Civigiftaid_Settings::getValue('financial_types_enabled'));
Removing the explode seems to handle both ticked and unticked cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions