mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Fixed product Grocycode handling on /purchase (references #2571)
This commit is contained in:
parent
7080ec9a8f
commit
1246f402e5
@ -16,6 +16,7 @@
|
||||
- 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
|
||||
- Fixed that Scan Mode on the purchase page didn't work (not all fields were properly populated) when using/scanning a product Grocycodes
|
||||
|
||||
### Shopping list
|
||||
|
||||
|
@ -358,7 +358,7 @@ if (Grocy.Components.ProductPicker !== undefined)
|
||||
Grocy.Api.Get('objects/product_barcodes?query[]=barcode=' + document.getElementById("product_id").getAttribute("barcode"),
|
||||
function(barcodeResult)
|
||||
{
|
||||
if (barcodeResult)
|
||||
if (barcodeResult && barcodeResult.length > 0)
|
||||
{
|
||||
var barcode = barcodeResult[0];
|
||||
$("#purchase-form").attr("data-used-barcode", barcode.id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user