Skip to content

Esnure only Datatable objects are used for rendering visualizations #21395

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

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Oct 12, 2023

Description:

This aims to fix #20585. I actually wasn't able to reproduce the problem, but based on the error message it seems that for some reason a boolean value is set as datatable for the visualization view. As the view file uses this as DataTable object it causes an error.
This PR adds a simple check to ensure only DataTable objects are passed to the view.

Review

@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Oct 12, 2023
@sgiehl sgiehl added this to the 5.0.0 milestone Oct 12, 2023
@sgiehl sgiehl requested a review from a team October 12, 2023 08:17
Copy link
Contributor

@michalkleiner michalkleiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one deserves to be approved. All tests green!

@caddoo caddoo merged commit 7580a3c into 5.x-dev Oct 16, 2023
@caddoo caddoo deleted the m20585 branch October 16, 2023 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Development

Successfully merging this pull request may close these issues.

Fatal error: Impossible to invoke a method ("getRows") on a boolean variable in _dataTableViz_htmlTable.twig
3 participants