Project60 / Project60/org.project60.banking

Action FindLatestBankAccount fails for contact without bank account

Open
#462 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.