fix: using whole codes instead of parts results in lag
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user