mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-11 17:39:41 +00:00
Fix #7189
This commit is contained in:
@@ -61,7 +61,7 @@ trait WithdrawalValidation
|
||||
|
||||
return false;
|
||||
}
|
||||
$this->source = $search;
|
||||
$this->setSource($search);
|
||||
Log::debug('Valid source account!');
|
||||
|
||||
return true;
|
||||
@@ -108,7 +108,7 @@ trait WithdrawalValidation
|
||||
if (null !== $found) {
|
||||
$type = $found->accountType->type;
|
||||
if (in_array($type, $validTypes, true)) {
|
||||
$this->destination = $found;
|
||||
$this->setDestination($found);
|
||||
return true;
|
||||
}
|
||||
$this->destError = (string)trans('validation.withdrawal_dest_bad_data', ['id' => $accountId, 'name' => $accountName]);
|
||||
@@ -151,7 +151,7 @@ trait WithdrawalValidation
|
||||
|
||||
return false;
|
||||
}
|
||||
$this->source = $search;
|
||||
$this->setSource($search);
|
||||
Log::debug('Valid source account!');
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user