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
Inheritance breaks filtering if relations are included #3610
Comments
@tractorcow any thoughts? It would be great if we could squeeze these edge-case bugs out of our ORM. :-) |
I'm trying to fix this bug, but I can't find which part of code is responsable for adding the JOIN clause. I'm debugging into SearchFilter, but i got lost... Any hint on where to search? |
I hope my fix will not have side effect somewhere into the code, after some first test it seems working. |
I think @g4b0's fix is exactly the solution. It just needs to include the failing test cases and it's done. |
Really strange, I'm running the tests proposed in arambalakjian/silverstripe-framework@7f502ac , but I get this error:
|
Ok, I found the issue: there was a missing " in the assertContains needle. Now tests are OK |
Here you are a test case:
After a dev/build?flush=all you can access "DO Admin" -> "Car" section, and in the "Filter" form will appear "Brand Name" input box. The bug will be triggered when searching for some Brand.Name, and will output the following:
Maybe this issue could be related to #2263
The text was updated successfully, but these errors were encountered: