diff --git a/changelog/53_UNRELEASED_2019-xx-xx.md b/changelog/53_UNRELEASED_2019-xx-xx.md index 3b8904f1..84bc90a1 100644 --- a/changelog/53_UNRELEASED_2019-xx-xx.md +++ b/changelog/53_UNRELEASED_2019-xx-xx.md @@ -1,3 +1,4 @@ +- Fixed that barcode lookups now compare the whole barcode, not parts of it (e. g. when you have two products with the barcodes "$1" and "$10" and scan "$1" maybe the product of "$10" was found till now) - It's now possible to display a recipe directly from the meal plan (new "eye button") (thanks @kriddles) - Improved the responsiveness of the meal plan and calendar page by automatically switching to a day calendar view on smaller screens (thanks for the idea @kriddles) - The calendar now also contains all planned recipes from the meal plan on the corresponding day diff --git a/public/viewjs/components/productpicker.js b/public/viewjs/components/productpicker.js index 9e7e8ac5..b4d07621 100644 --- a/public/viewjs/components/productpicker.js +++ b/public/viewjs/components/productpicker.js @@ -134,7 +134,7 @@ $('#product_id_text_input').on('blur', function(e) } var input = $('#product_id_text_input').val().toString(); - var possibleOptionElement = $("#product_id option[data-additional-searchdata*=\"" + input + "\"]").first(); + var possibleOptionElement = $("#product_id option[data-additional-searchdata*=\"" + input + ",\"]").first(); if (GetUriParam('addbarcodetoselection') === undefined && possibleOptionElement.length > 0) { diff --git a/views/components/productpicker.blade.php b/views/components/productpicker.blade.php index ecef52c9..b6852d49 100644 --- a/views/components/productpicker.blade.php +++ b/views/components/productpicker.blade.php @@ -17,7 +17,7 @@
{{ $__t('You have to select a product') }}