-
Notifications
You must be signed in to change notification settings - Fork 80
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
Error rendering filters when two filter fields share the same prefix #242
Comments
@jonathonadler Interesting find. I'll try to create a failing test case for regression purposes. Do you have any interest it trying to make a fix for this issue and submitting a Pull Request? If not, I'll try to get on this sometime this week to update & fix the issue. |
@jonathonadler I merged PR #243 with a fix for this. Could you try using the master branch of Torch locally and confirm with me that this fixes your issue? If so, I'll go ahead and cut a new official release of Torch with this fix included. |
Thanks @cpjolicoeur! I really appreciate your efforts here. I'm really glad you took up the PR because I'm still learning Elixir and may have struggled to implement so quickly. I tested locally against master branch and it now works perfectly. |
@jonathonadler Version 3.6.2 has been released to hex. Thanks for the bug report and help with this. |
I have a template with the following two search filters (some fields omitted):
My filter config has:
Whenever I search by "email_confirmed_at", I get an error:
The error goes away if I comment out the following line in my template:
The cause appears to be related to the find_param implementation in filter_view.ex:
It seems like the wrong field ("email") is found first within the map. I don't think the String.starts_with? logic is the correct approach here.
The text was updated successfully, but these errors were encountered: