Project60 / Project60/org.project60.banking
Action FindLatestBankAccount fails for contact without bank account
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 22
- Forks
- 45
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 7
Description
The Action FindLatestBankAccount fails with Fatal Error, when no bank account exists for the contact.
"message" => "Could not find a bank account for contact3064, error message from API3 BankingAccount or BankingAccountReference getvalue: Expected one BankingAccount but found 0(in /.../sites/default/files/civicrm/ext/org.project60.banking/Civi/Banking/Actions/FindLatestAccount.php:66)"
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in Civi/Banking/Actions/FindLatestAccount.php at line 66 and reproduce the action for a contact without a bank account. Trace how the zero-account response is handled and clarify the expected non-fatal outcome; the issue is complete when this case no longer produces the reported fatal error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100