Skip to content

Firefly III: a personal finances manager

Add checks to fix #3119

James Cole400c0ccaca82
diff --git a/app/Console/Commands/Correction/FixUnevenAmount.php b/app/Console/Commands/Correction/FixUnevenAmount.php
index 883ade6c8d..2001cf0848 100644
--- a/app/Console/Commands/Correction/FixUnevenAmount.php
+++ b/app/Console/Commands/Correction/FixUnevenAmount.php
@@ -99,7 +99,7 @@ class FixUnevenAmount extends Command
)
);
Transaction::where('transaction_journal_id', $journal->id ?? 0)->forceDelete();
- TransactionJournal::where('id', $journal-> ?? 0)->forceDelete();
+ TransactionJournal::where('id', $journal->description ?? 0)->forceDelete();
return;
}
@@ -119,7 +119,7 @@ class FixUnevenAmount extends Command
);
Transaction::where('transaction_journal_id', $journal->id ?? 0)->forceDelete();
- TransactionJournal::where('id', $journal-> ?? 0)->forceDelete();
+ TransactionJournal::where('id', $journal->description ?? 0)->forceDelete();
return;
}