Merge branch 'feature/fix-marketplace-search' into 'dev'

Fix SQL query upon searching in Marketplace

See merge request morningstar/Arcturus-Community!428
This commit is contained in:
ArpyAge 2021-09-01 22:44:15 +00:00
commit da5fa49766

View File

@ -122,7 +122,7 @@ public class MarketPlace {
query += " AND CEIL(price + (price / 100)) <= " + maxPrice;
}
if (search.length() > 0) {
query += " AND bi.public_name LIKE ? OR ci.catalog_name LIKE ?";
query += " AND ( bi.public_name LIKE ? OR ci.catalog_name LIKE ? ) ";
}
query += " GROUP BY base_item_id, ltd_data";