mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Fixed products page product group filter to use an exact search instead of contains (fixes #2570)
This commit is contained in:
parent
c21090f522
commit
434525826e
@ -15,6 +15,7 @@
|
||||
- If the lookup was successful, the product edit page of the created product is displayed, where the product setup can be completed (if required)
|
||||
- After that, the transaction is continued with that product
|
||||
- Fixed that when copying a product, the field "Treat opened as out of stock" wasn't copied along (thanks @TheDodger)
|
||||
- Fixed that the product groups filter on the master data products page used a contains search instead of an exact search
|
||||
|
||||
### Shopping list
|
||||
|
||||
|
@ -27,10 +27,13 @@ $("#product-group-filter").on("change", function()
|
||||
var value = $("#product-group-filter option:selected").text();
|
||||
if (value === __t("All"))
|
||||
{
|
||||
value = "";
|
||||
productsTable.column(productsTable.colReorder.transpose(6)).search("").draw();
|
||||
}
|
||||
else
|
||||
{
|
||||
productsTable.column(productsTable.colReorder.transpose(6)).search("^" + value + "\$", true, false).draw();
|
||||
}
|
||||
|
||||
productsTable.column(productsTable.colReorder.transpose(6)).search(value).draw();
|
||||
});
|
||||
|
||||
$("#clear-filter-button").on("click", function()
|
||||
|
Loading…
x
Reference in New Issue
Block a user