Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <matt@piwik.org>2016-03-10 19:57:29 +0300
committerMatthieu Aubry <matt@piwik.org>2016-03-10 19:57:29 +0300
commit5d14d8a9100178d4c20af2715a9eb9d8c044034e (patch)
treeac3a5935129eaca2fdc10ef75c2e7294e64075bb /plugins/Transitions
parente4d548c033811ebc4ecaad62a606a1fb8552c70d (diff)
parent379dbcea60a373fc955beac8e87ce9cba29f4ad9 (diff)
Merge pull request #9873 from piwik/9822
Transitions should work as expected even when used along with a Goal segment
Diffstat (limited to 'plugins/Transitions')
-rw-r--r--plugins/Transitions/API.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Transitions/API.php b/plugins/Transitions/API.php
index 1ab38f89ae..4304e2a281 100644
--- a/plugins/Transitions/API.php
+++ b/plugins/Transitions/API.php
@@ -222,7 +222,8 @@ class API extends \Piwik\Plugin\API
if ($actionType != 'title') {
// specific setup for page urls
$types[Action::TYPE_PAGE_URL] = 'followingPages';
- $dimension = 'if ( idaction_url IS NULL, idaction_name, idaction_url )';
+ $dimension = 'if ( %1$s.idaction_url IS NULL, %1$s.idaction_name, %1$s.idaction_url )';
+ $dimension = sprintf($dimension, 'log_link_visit_action' );
// site search referrers are logged with url=NULL
// when we find one, we have to join on name
$joinLogActionColumn = $dimension;
@@ -405,7 +406,8 @@ class API extends \Piwik\Plugin\API
if ($dimension == 'idaction_url_ref') {
// site search referrers are logged with url_ref=NULL
// when we find one, we have to join on name_ref
- $dimension = 'if ( idaction_url_ref IS NULL, idaction_name_ref, idaction_url_ref )';
+ $dimension = 'if ( %1$s.idaction_url_ref IS NULL, %1$s.idaction_name_ref, %1$s.idaction_url_ref )';
+ $dimension = sprintf($dimension, 'log_link_visit_action');
$joinLogActionOn = $dimension;
} else {
$joinLogActionOn = $dimension;