New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
highlight+copy barcode straight from OFF page to OP search box results in Product not found - transit via textfile works #574
Comments
Where are you pasting the EAN ? |
ok ! I'll be on holidays for the next few days. |
On my laptop I can't seem to reproduce 🤔 |
One solution would be to strip spaces when searching (remove any space at the start and at the end of the text) |
I first noticed the problem when copying from a tab OFF's website on my laptop to the searchbox on OP's searchbox on the webapp on mobile ( using KDE connect's clipboard sharing feature). After this message I tried while staying on the laptop, copy from one tab with OFF's website to the next tab containing OP's webapp searchbox but the behavior was the same. |
If it's a quick fix to go that way ( a few lines of code ) I'd appreciate if we could give this a try and if it doesn't work we'll move on, either close the issue or keep it for reference but without plan to dig deeper until someone else report it. |
Could you try on a phone ? Or on another laptop ? Or send a video ? I can't reproduce, so it could come from your OS.. ? |
here's a video entirely on a mobile phone https://transfert.free.fr/8gpgVe1 I'll try all on a windows laptop soon and report PS: I tried to upload the file here on github but it was > 10MB, used ffmpeg to get it down to 2.5 then there was a message about mime type... |
Thanks a lot for the video ! So i did some tests, and dug inside the code
Could you try to test again in the staging environment ? https://prices.openfoodfacts.net/app/ |
Epic: #
Description
repeat steps 1 to 3 but paste into a text editor ( gedit in my case ), highlight and copy from there, product is found.
Same thing happen when you want to copy EAN from OFF page to add a new product
Looks like there's a space added in front of the EAN
The text was updated successfully, but these errors were encountered: