-
Notifications
You must be signed in to change notification settings - Fork 638
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
[5.x]: Small inconvenience when looking up product / variant fields to add to their field layout #16277
Comments
@hatyi can you confirm is this is only for products/variants and it doesn't do the same with entry types? |
Hello Luke, sorry for sleeping on this. Now I have quickly checked and the same is happening with other entry types as well. Here is a video evidence on it Regards |
Hi, thanks for reporting! I raised a PR for this. |
Craft 5.5.6 is out with that fix. Thanks again! |
What happened?
Description
Hello I'm reporting a minor, frontend related inconvenience in the admin.
I'm working on a project where we have a very complex product / variant field layout and when I'm trying to look up the fields I have created by their name / handle to add them to the required field layouts (product or variant), the system is listing out the previous matches as well, not only the ones that should appear based on the search term.
Steps to reproduce
Expected behavior
The system only lists out valid matches based on the search term.
We don't see the previous matches in addition to the correct one.
Actual behavior
System is seemingly listing out the previous matches as well in addition to the correct one.
I'm assuming that some kind of JS array is not being emptied out when a new search is fired, so the system unnecessarily remembers the previous matches. (I didn't see any XHR when I'm doing these searches that's why I believe it's just a frontend bug)
Craft CMS version
5.4.4
Craft Commerce version
5.1.1
PHP version
PHP 8.2.22 (cli)
Operating system and version
Ubuntu 22.04 (running PHP FPM, Nginx, MySQL in Docker)
Database type and version
mysql:8.0.36
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: