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

Fix report values not being stored correctly when editing a scheduled report #11745

Merged
merged 1 commit into from May 29, 2017

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented May 29, 2017

fixes #11622

@sgiehl sgiehl added 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. labels May 29, 2017
@sgiehl sgiehl added this to the 3.0.5 milestone May 29, 2017
@@ -31,7 +31,7 @@
var i, field, fields = ['displayFormat', 'emailMe', 'evolutionGraph', 'additionalEmails'];
for (i in fields) {
field = fields[i];
if (report.parameters[field]) {
if (field in report.parameters) {
Copy link
Member Author

Choose a reason for hiding this comment

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

This check prevented values validating to false from being set to the report itself. This caused the "send to me" value from not being set correctly and saving the default value (yes) instead.

Copy link
Member

Choose a reason for hiding this comment

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

👍

@tsteur
Copy link
Member

tsteur commented May 29, 2017

LGTM

@sgiehl sgiehl merged commit 1821691 into 3.x-dev May 29, 2017
@sgiehl sgiehl deleted the fixemailme branch May 29, 2017 20:22
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create and Schedule a report: "Send report to" "Send to me" gets selected while editing
2 participants