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
Transitions should work as expected even when used along with a Goal segment #9873
Conversation
…oins another table that has some field names in common #9822
@@ -222,7 +222,8 @@ protected function queryFollowingActions($idaction, $actionType, LogAggregator $ | |||
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 ( %s.idaction_url IS NULL, %s.idaction_name, %s.idaction_url )'; | |||
$dimension = str_replace('%s', 'log_link_visit_action', $dimension ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason for not using sprintf
here and below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for sprintf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's possible to use sprintf but we need to replace %s
by %1$s
in all 3 occurrences. Otherwise we get sprintf(): Too few arguments
. Shall I do it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, use %1$s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, done
Transitions should work as expected even when used along with a Goal segment
fixes #9822