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

Make Piwik helper more robust. #1191

Merged
merged 2 commits into from Jun 5, 2018
Merged

Conversation

EreMaijala
Copy link
Contributor

Piwik helper was trying to access the result of ViewModel->getCurrent() without null checking (apart from getCombinedSearchResults, which already did). I encountered this while calling Record helper's renderTemplate() from an AjaxHandler.

Also make the helper try current view for a record driver if there's no current template in the ViewModel.

@jochen-lienhard
Copy link
Contributor

@EreMaijala shall we discuss the problems of tracking using accordion or tabs in this PR too?

  1. When using accordion/tabs the action is not track
  2. When switching to another accordion it is tracked but no customvariables.

@EreMaijala
Copy link
Contributor Author

@jochen-lienhard I don't believe this affects the accordion, so let's keep that separate.

@jochen-lienhard
Copy link
Contributor

OK, than I wait with a new PR until this is merged.

@demiankatz
Copy link
Member

This looks reasonable to me. I'm merging it now; @jochen-lienhard, please go ahead with your new PR whenever you're ready!

@demiankatz demiankatz merged commit 5453a1e into vufind-org:master Jun 5, 2018
@EreMaijala EreMaijala deleted the piwik-fix branch September 27, 2018 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants