mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix #1209
This commit is contained in:
parent
a23d97563f
commit
91909a70d7
@ -131,8 +131,15 @@ class LinkTypeRepository implements LinkTypeRepositoryInterface
|
||||
{
|
||||
$outward = TransactionJournalLink::whereSourceId($journal->id)->get();
|
||||
$inward = TransactionJournalLink::whereDestinationId($journal->id)->get();
|
||||
$merged = $outward->merge($inward);
|
||||
|
||||
return $outward->merge($inward);
|
||||
$filtered = $merged->filter(
|
||||
function (TransactionJournalLink $link) {
|
||||
return (!is_null($link->source) && !is_null($link->destination));
|
||||
}
|
||||
);
|
||||
|
||||
return $filtered;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user