-
Notifications
You must be signed in to change notification settings - Fork 9.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
Fixed issue #20828 Newsletter Problem Grid Filter issue #20829
Fixed issue #20828 Newsletter Problem Grid Filter issue #20829
Conversation
Hi @GovindaSharma. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface; | ||
|
||
class Index extends \Magento\Newsletter\Controller\Adminhtml\Problem implements HttpGetActionInterface | ||
class Index extends \Magento\Newsletter\Controller\Adminhtml\Problem implements HttpGetActionInterface, HttpPostActionInterface |
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.
Hi @GovindaSharma. Thanks for collaboration. Can you please explain how your changes related to the bug in the issue?
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.
Hello @VladimirZaets ,as when grid is loading then it is get request but when you click on Search or Rest Filter button it becomes post request,but in controller only HttpGetActionInterface is implemented because of this filters not working,so i added the HttpPostActionInterface ,so whenever filters is called it is handled by HttpPostActionInterface.
You can check in Newsletter queue Grid,there it is working fine because in the controller(app/code/Magento/Newsletter/Controller/Adminhtml/Queue/Index.php) both HttpPostActionInterface and HttpGetActionInterface is implemented.
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.
@GovindaSharma Hi, I understand the case. So, the code that currently exists in Magento will be refactored (or you can do it also in another PR if you want).
The right way to resolve this issue is creating additional POST controller and use it for filters operations.
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.
@VladimirZaets ok then i will change accordingly,since controller is already created we just need to pass that controller url.I will update you on this.
Thank You
@magento-engcom-team give me test instance |
Hi @GovindaSharma. Thank you for your request. I'm working on Magento instance for you |
Hi @GovindaSharma, here is your new Magento instance. |
@VladimirZaets i have updated the changes according to your request.Reverted the previous changes and just added the grid url in xml,now all filters request will directly go to grid url. Please check and update on this. |
Hi @VladimirZaets, thank you for the review. |
Hi @GovindaSharma, thank you for your contribution! |
Description (*)
Fixed issue #20828 Newsletter Problem Grid Filter issue
Fixed Issues (if relevant)
Manual testing scenarios (*)
1.Go To Magento Backend
2.Navigate to Reports->Newsletter Problem Reports
3.Grid Will Open
4.Click on Search or Reset Filter Button
Contribution checklist (*)