Make product barcode matching case insensitive (closes #2609)

This commit is contained in:
Bernd Bestel
2025-01-13 22:29:33 +01:00
parent cc40344845
commit caa28af0d2
3 changed files with 3 additions and 2 deletions

View File

@@ -175,7 +175,7 @@ $('#product_id_text_input').on('blur', function(e)
}
else // Normal product barcode handling
{
possibleOptionElement = $("#product_id option[data-additional-searchdata*=\"" + input + ",\"]").first();
possibleOptionElement = $("#product_id option[data-additional-searchdata*=\"" + input.toLowerCase() + ",\"]").first();
}
if (GetUriParam('flow') === undefined && input.length > 0 && possibleOptionElement.length > 0)