mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Don't apply the barocde qu_id if empty (fixes #1619)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user