Skip to content
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

Fixes some problems in export overlay #13932

Merged
merged 1 commit into from Jan 22, 2019
Merged

Fixes some problems in export overlay #13932

merged 1 commit into from Jan 22, 2019

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Jan 5, 2019

fixes incorrect detection of flat param and possible double encoding of label param

fixes #13160
fixes #13059

@sgiehl sgiehl added the Needs Review PRs that need a code review label Jan 5, 2019
@@ -185,10 +185,10 @@
scope.reportType = 'default';
scope.reportLimit = dataTable.param.filter_limit > 0 ? dataTable.param.filter_limit : 100;
scope.reportLimitAll = dataTable.param.filter_limit == -1 ? 'yes' : 'no';
scope.optionFlat = dataTable.param.flat;
scope.optionFlat = dataTable.param.flat === true || dataTable.param.flat === 1 || dataTable.param.flat === "1";
Copy link
Member Author

Choose a reason for hiding this comment

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

in some cases dataTable.param.flat is set to (string) 0, which validated to true before, causing a flat=1 in the export url where it shouldn't be

@tsteur
Copy link
Member

tsteur commented Jan 6, 2019

haven't tested it but looks good

@sgiehl sgiehl added this to the 3.9.0 milestone Jan 14, 2019
@diosmosis
Copy link
Member

Works for me

@diosmosis diosmosis merged commit bd12fe3 into 3.x-dev Jan 22, 2019
@diosmosis diosmosis deleted the exportfixes branch January 22, 2019 01:24
@mattab mattab modified the milestones: 3.9.0, 3.8.1 Jan 22, 2019
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hierarchical reports exports empty datasets on leafs Hierarchical page export: label wrongly encoded
4 participants