mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-21 16:38:36 -06:00
Merge pull request #6975 from firefly-iii/issue-6834
Null check for https://github.com/firefly-iii/firefly-iii/issues/6834
This commit is contained in:
commit
9aaf79a3ab
@ -81,7 +81,7 @@ trait JournalServiceTrait
|
||||
|
||||
// if result is NULL but IBAN is set, any result of the search by NAME can't overrule
|
||||
// this account. In such a case, the name search must be retried with a new name.
|
||||
if (null !== $result && null === $numberResult && null === $ibanResult && null !== $data['iban']) {
|
||||
if (null !== $result && null === $numberResult && null === $ibanResult && '' !== (string) $data['iban']) {
|
||||
$data['name'] = sprintf('%s (%s)', $data['name'], $data['iban']);
|
||||
Log::debug(sprintf('Search again using the new name, "%s".', $data['name']));
|
||||
$result = $this->findAccountByName(null, $data, $expectedTypes[$transactionType]);
|
||||
|
Loading…
Reference in New Issue
Block a user