mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Replace missing methods.
This commit is contained in:
@@ -87,7 +87,7 @@ trait WithdrawalValidation
|
||||
|
||||
// if there's an ID it must be of the "validTypes".
|
||||
if (null !== $accountId && 0 !== $accountId) {
|
||||
$found = $this->getRepository()->find($accountId);
|
||||
$found = $this->accountRepository->find($accountId);
|
||||
if (null !== $found) {
|
||||
$type = $found->accountType->type;
|
||||
if (in_array($type, $validTypes, true)) {
|
||||
|
Reference in New Issue
Block a user