Skip to content

Firefly III: a personal finances manager

Bad hash checking found in #4997

James Coled18e9da46882
diff --git a/app/Factory/TransactionJournalFactory.php b/app/Factory/TransactionJournalFactory.php
index 8a7025b376..8937adec07 100644
--- a/app/Factory/TransactionJournalFactory.php
+++ b/app/Factory/TransactionJournalFactory.php
@@ -333,7 +333,8 @@ class TransactionJournalFactory
if ($this->errorOnHash) {
Log::debug('Will verify duplicate!');
/** @var TransactionJournalMeta $result */
- $result = TransactionJournalMeta::where('data', json_encode($hash, JSON_THROW_ON_ERROR))
+ $result = TransactionJournalMeta::withTrashed()
+ ->where('data', json_encode($hash, JSON_THROW_ON_ERROR))
->with(['transactionJournal', 'transactionJournal.transactionGroup'])
->first();
}