mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Skip deleted piggies.
This commit is contained in:
@@ -277,6 +277,9 @@ class TransactionGroupRepository implements TransactionGroupRepositoryInterface
|
|||||||
->get(['piggy_bank_events.*']);
|
->get(['piggy_bank_events.*']);
|
||||||
/** @var PiggyBankEvent $row */
|
/** @var PiggyBankEvent $row */
|
||||||
foreach ($data as $row) {
|
foreach ($data as $row) {
|
||||||
|
if(null === $row->piggyBank) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// get currency preference.
|
// get currency preference.
|
||||||
$currencyPreference = AccountMeta
|
$currencyPreference = AccountMeta
|
||||||
::where('account_id', $row->piggyBank->account_id)
|
::where('account_id', $row->piggyBank->account_id)
|
||||||
|
Reference in New Issue
Block a user