Hide barcode in select dropdown but search in it

This commit is contained in:
Bernd Bestel
2017-04-18 23:04:26 +02:00
parent dc530c80aa
commit 83a7534a74
7 changed files with 54 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ $(function()
Grocy.FetchJson('/api/get-object/products/' + Grocy.EditObjectId,
function (product)
{
if (product.barcode.length > 0)
if (product.barcode !== null && product.barcode.length > 0)
{
product.barcode.split(',').forEach(function(item)
{