fix: using whole codes instead of parts results in lag

This commit is contained in:
Guillermo Pages
2022-07-01 14:31:24 +02:00
parent 17fe057765
commit 4671e4845a

View File

@@ -295,7 +295,7 @@ class BookSearch
$books = [];
foreach($parts as $p) {
// if we use array_merge here the numerical keys (book code) will be lost
$bs->addOrQuery($codes, $field);
$bs->addOrQuery($p, $field);
$results = $bs->getResults(0, $count);
$foundBooks = $results['books'];
$books += $foundBooks;