mirror of
https://github.com/grocy/grocy.git
synced 2025-08-21 04:43:32 +00:00
Allow empty QU when editing product barcodes (fixes #2526)
This commit is contained in:
@@ -92,7 +92,11 @@ if (Grocy.EditMode == "edit")
|
||||
{
|
||||
$("#display_amount").val(Grocy.EditObject.amount);
|
||||
$(".input-group-productamountpicker").trigger("change");
|
||||
Grocy.Components.ProductAmountPicker.SetQuantityUnit(Grocy.EditObject.qu_id);
|
||||
|
||||
if (Grocy.EditObject.qu_id)
|
||||
{
|
||||
Grocy.Components.ProductAmountPicker.SetQuantityUnit(Grocy.EditObject.qu_id);
|
||||
}
|
||||
}
|
||||
|
||||
Grocy.FrontendHelpers.ValidateForm('barcode-form');
|
||||
|
Reference in New Issue
Block a user