mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix #10854 and another issue (again).
This commit is contained in:
@@ -370,8 +370,11 @@ class TransactionGroupRepository implements TransactionGroupRepositoryInterface,
|
||||
|
||||
public function getTagObjects(int $journalId): Collection
|
||||
{
|
||||
/** @var TransactionJournal $journal */
|
||||
/** @var TransactionJournal|null $journal */
|
||||
$journal = $this->user->transactionJournals()->find($journalId);
|
||||
if(null ===$journal) {
|
||||
return new Collection();
|
||||
}
|
||||
|
||||
return $journal->tags()->whereNull('deleted_at')->get();
|
||||
}
|
||||
|
Reference in New Issue
Block a user