Optimized product Grocycode handling on consume page (and others / general) (fixes #2571)

This commit is contained in:
Bernd Bestel
2024-08-24 18:20:40 +02:00
parent 1246f402e5
commit d5dacb1053
8 changed files with 43 additions and 9 deletions

View File

@@ -270,7 +270,7 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
if (document.getElementById("product_id").getAttribute("barcode") != "null")
{
Grocy.Api.Get('objects/product_barcodes?query[]=barcode=' + document.getElementById("product_id").getAttribute("barcode"),
Grocy.Api.Get('objects/product_barcodes_view?query[]=barcode=' + document.getElementById("product_id").getAttribute("barcode"),
function(barcodeResult)
{
if (barcodeResult)