Make search integer.

This commit is contained in:
James Cole 2021-05-09 10:11:35 +02:00
parent 06a5b60aaf
commit 038996dff9
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -339,7 +339,11 @@ class GroupCollector implements GroupCollectorInterface
public function setJournalIds(array $journalIds): GroupCollectorInterface
{
if (0 !== count($journalIds)) {
$this->query->whereIn('transaction_journals.id', $journalIds);
// make all integers.
$integerIDs = array_map('intval', $journalIds);
$this->query->whereIn('transaction_journals.id', $integerIDs);
}
return $this;