From 204d5ee1e3069c7719fb481dc58249e86a184327 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 11 Jun 2021 17:31:13 +0200 Subject: [PATCH] Fix issue with searching for external_id --- app/Helpers/Collector/Extensions/MetaCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/Collector/Extensions/MetaCollection.php b/app/Helpers/Collector/Extensions/MetaCollection.php index 50f97ff764..746657ac98 100644 --- a/app/Helpers/Collector/Extensions/MetaCollection.php +++ b/app/Helpers/Collector/Extensions/MetaCollection.php @@ -207,7 +207,7 @@ trait MetaCollection $this->query->leftJoin('journal_meta', 'transaction_journals.id', '=', 'journal_meta.transaction_journal_id'); } $this->query->where('journal_meta.name', '=', 'external_id'); - $this->query->where('journal_meta.data', '=', sprintf('%s', $externalId)); + $this->query->where('journal_meta.data', '=', sprintf('%s', json_encode($externalId))); return $this; }