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

Website chooser may not work because of a whitespace problem #9712

Merged
merged 1 commit into from Feb 4, 2016

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Feb 4, 2016

@tsteur tsteur added the Needs Review PRs that need a code review label Feb 4, 2016
@tsteur tsteur added this to the 2.16.1 milestone Feb 4, 2016
@sgiehl
Copy link
Member

sgiehl commented Feb 4, 2016

Looks good.

sgiehl added a commit that referenced this pull request Feb 4, 2016
Website chooser may not work because of a whitespace problem
@sgiehl sgiehl merged commit 083b4ce into master Feb 4, 2016
@sgiehl sgiehl deleted the websitechooser_whitespace branch February 4, 2016 21:13
@mattab
Copy link
Member

mattab commented Feb 5, 2016

@tsteur @sgiehl Maybe we can add a ReleaseChecklistTest integration test that looks for these "problematic" spaces in all JS files (and more as appropriate), so we can detect before the release, preventing this issue occuring again?

@SebaldJ
Copy link

SebaldJ commented Feb 7, 2016

Hello,
i have a smiliar Bug with the Version 2.16.0:
On the Dashboard, the Website chooser shows this html code:
{{'CoreHome_ChangeCurrentWebsite' |translate: ((selectedSite.name ||))}} {{(Â model.firstSiteName) |htmldecode)}}

More on the Piwik Forum:
http://forum.piwik.org/t/bug-after-update-to-piwik-2-16-0-dashboard-select-websites/17920/2

But, even after adding patch of space or the the whole line, has nothing changed, the error is still present.

Is there a workaround or bug fix?
I am grateful of any help.

Greets John

@tsteur
Copy link
Member Author

tsteur commented Feb 7, 2016

You might need to clear the browser cache afterwards

@SebaldJ
Copy link

SebaldJ commented Feb 7, 2016

Hello tsteur,
the problem is unfortunately still present even after emptying the browser cache in Chrome.

tsteur added a commit to matomo-org/plugin-AnonymousPiwikUsageMeasurement that referenced this pull request Feb 7, 2016
tsteur added a commit to matomo-org/plugin-CustomDimensions that referenced this pull request Feb 7, 2016
tsteur added a commit that referenced this pull request Feb 7, 2016
@tsteur
Copy link
Member Author

tsteur commented Feb 7, 2016

@mattab that should be possible. Maybe need to limit to html, twig and .php and js files without our files. Eg there are actually expected test files etc with this character (meaning our test DB may contain this whitespace)

@tsteur tsteur mentioned this pull request Feb 7, 2016
@tsteur
Copy link
Member Author

tsteur commented Feb 7, 2016

@SebaldJ please try to apply this patch as well https://github.com/piwik/piwik/pull/9729/files

@mattab
Copy link
Member

mattab commented Feb 8, 2016

New integration test to catch this problem pro-actively in the future #9730

@SebaldJ
Copy link

SebaldJ commented Feb 8, 2016

@tsteur The Patch from https://github.com/piwik/piwik/pull/9729/files works fine!
I have changed the following files:

plugins/CoreHome/angularjs/siteselector/siteselector.directive.html (line 19 and 40)
plugins/ScheduledReports/API.php (line 736)

The bug is gone. Thank your for your help

@BSG2000
Copy link

BSG2000 commented Feb 8, 2016

@tsteur I was also successful - same patch as @SebaldJ .
Thank you for support!

@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Apr 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants