Financial Type get api action returns empty values when name parameter is used
Any parameters work fine except of name
. I see such problems:
- it's not possible to find type by existing name
- it's not possible to find type by non-existing name (test for new financial type)
'DonationNew' is not a valid option for field financial_type = Array
Example:
$result = civicrm_api3('FinancialType', 'get', [
'sequential' => 1,
'name' => "Donation",
]);
Result:
{
"is_error": 0,
"version": 3,
"count": 0,
"values": []
}
This is a regression in those versions
- 5.5.3
- 5.6.0
It works fine in 5.3.2