mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Make product barcode matching case insensitive (closes #2609)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user