mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Make search integer.
This commit is contained in:
@@ -339,7 +339,11 @@ class GroupCollector implements GroupCollectorInterface
|
|||||||
public function setJournalIds(array $journalIds): GroupCollectorInterface
|
public function setJournalIds(array $journalIds): GroupCollectorInterface
|
||||||
{
|
{
|
||||||
if (0 !== count($journalIds)) {
|
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;
|
return $this;
|
||||||
|
Reference in New Issue
Block a user