mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Don't apply the barocde qu_id if empty (fixes #1619)
This commit is contained in:
parent
5563e7ed4c
commit
6175afa6be
@ -383,7 +383,7 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
|
||||
$("#display_amount").select();
|
||||
}
|
||||
|
||||
if (barcode.qu_id != null)
|
||||
if (barcode.qu_id != null && !barcode.qu_id.isEmpty())
|
||||
{
|
||||
Grocy.Components.ProductAmountPicker.SetQuantityUnit(barcode.qu_id);
|
||||
}
|
||||
|
@ -199,7 +199,7 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
|
||||
$("#display_amount").select();
|
||||
}
|
||||
|
||||
if (barcode.qu_id != null)
|
||||
if (barcode.qu_id != null && !barcode.qu_id.isEmpty())
|
||||
{
|
||||
Grocy.Components.ProductAmountPicker.SetQuantityUnit(barcode.qu_id);
|
||||
}
|
||||
|
@ -349,7 +349,7 @@ if (Grocy.Components.ProductPicker !== undefined)
|
||||
$("#display_amount").select();
|
||||
}
|
||||
|
||||
if (barcode.qu_id != null)
|
||||
if (barcode.qu_id != null && !barcode.qu_id.isEmpty())
|
||||
{
|
||||
Grocy.Components.ProductAmountPicker.SetQuantityUnit(barcode.qu_id);
|
||||
}
|
||||
|
@ -223,7 +223,7 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
|
||||
$("#display_amount").select();
|
||||
}
|
||||
|
||||
if (barcode.qu_id != null)
|
||||
if (barcode.qu_id != null && !barcode.qu_id.isEmpty())
|
||||
{
|
||||
Grocy.Components.ProductAmountPicker.SetQuantityUnit(barcode.qu_id);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user