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
Upgrade report bundle to work with Symfony 3 forms #8056
Upgrade report bundle to work with Symfony 3 forms #8056
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.
I tested and it works
- publish/unpublish
- opening native reports (already created reports on fresh instance)
Not working
- Try to view native report n°3 (https://mautibox.com/8056/s/reports/view/3)
- Click on "New" report button
- Try edit any native report
These issues have been addressed @npracht |
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.
I tested and it works
- publish/unpublish
- opening native reports (already created reports on fresh instance)
- Click on "New" report button
- Try edit any native report
Not working:
- Try to view native report n°3 (https://mautibox.com/8056/s/reports/view/3)
- Try to create a new report, when you save and close, the interface freezes
[2019-11-03 08:30:50] mautic.ERROR: Symfony\Component\Debug\Exception\ContextErrorException: PHP Notice - Undefined index: count_query - in file /var/app/current/code/pulls/8056/app/bundles/ReportBundle/Views/Report/details.html.php - at line 175
As we discussed in Amsterdam, both errors are present in the branch outside of any changes that I've made - it's an issue with running in Dev mode that's not dependent upon any changes here. |
Issues presented are present in dev mode without any of these changes implemented. So they are unrelated to this PR.
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.
Please flip values and keys for ChoiceType
form types and add choices_as_values
option.
https://symfony.com/doc/2.7/reference/forms/types/choice.html#choices-as-values
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.
I don't see any issue now. 👍
Failed tests fixed in #8232 |
Please be sure you are submitting this against the staging branch.
Description:
Upgrades the Report Bundle to work with Symfony 3 forms.
Steps to test this PR: