-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix possible null error in search #8149
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear where there is an issue with the fact query can be null in the template https://github.com/sonata-project/SonataAdminBundle/blob/4.x/src/Resources/views/Core/search.html.twig
It is an issue, I got several exception in my projects. In the template we only check if the |
What is the exception you get ? The block result doesn't seems to use the query variable
Also, it's kinda weird to have this defined and not false check, since we use it was made in #1855 |
Btw if you rebase, I fix the phpstan/rector build |
907969f
to
5ddc96a
Compare
Done |
I appreciate you re-request my review but I have a lot of question unanswered... |
I receive a
To be safe we could fix it in the template as well, but this won't help if you are using a custom template. The root cause is the block, not the template. |
Thanks Do you have the rights to make a release ? Or I will do it next week |
Subject
I am targeting this branch, because this is a patch.
Changelog