FIX add only one product if no key code defined

This commit is contained in:
VESSILLER 2020-03-11 09:15:52 +01:00
parent 31e59bbe87
commit e4608a1ee5

View File

@ -473,7 +473,7 @@ function Search2(keyCodeForEnter) {
$("#prodiv" + i).data("iscat", 0);
}
}).always(function (data) {
if (data.length == 1) ClickProduct(0);
if ($('#search').val().length > 0 && data.length == 1) ClickProduct(0);
});
}
}