mirror of
https://github.com/grocy/grocy.git
synced 2025-09-29 19:12:24 +00:00
Optimized product Grocycode handling on consume page (and others / general) (fixes #2571)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user