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

Do not load a report by dimension as a widget so it remembers last used report settings #9398

Merged
merged 1 commit into from Dec 21, 2015

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Dec 15, 2015

refs #6761

In https://github.com/piwik/piwik/blob/2.15.0/core/ViewDataTable/Factory.php#L107 we load savedViewDataTableParameters only if it is not a widget. Why? Widgets are shown in the dashboard and there someone might want to use different settings for a report than in the standalone report on a page. Eg in the report page "Custom Variables" someone might want to see the table with all columns whereas the report in the dashboard should show only the normal table. Also we save dashboard parameters in a separate table.

The ReportByDimension component used an existing method loadWidgetAjax() which always set the parameter widget=1. So we never remembered any setting for reports in ReportByDimension. As there is not much logic we do not have to reuse that method and can simply request the report manually. The widget=1 parameter should not be needed.

@tsteur tsteur added the Needs Review PRs that need a code review label Dec 15, 2015
@tsteur tsteur added this to the 2.15.1 milestone Dec 15, 2015
@mattab
Copy link
Member

mattab commented Dec 21, 2015

Cheers for fixing this one too! 👍

mattab pushed a commit that referenced this pull request Dec 21, 2015
Do not load a report by dimension as a widget so it remembers last used report settings
@mattab mattab merged commit bbe352f into master Dec 21, 2015
@mattab mattab deleted the load_reportbydimension_notaswidget branch December 21, 2015 01:50
@mattab mattab added the c: Usability For issues that let users achieve a defined goal more effectively or efficiently. label Jan 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants