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>2015-02-10 00:46:35 +0300
committerMatthieu Aubry <matt@piwik.org>2015-02-10 00:46:35 +0300
commit25409d6d66524f71cc1379c409d73cefbd72ae59 (patch)
treebd40c6f3d711cee5abb47e5797346259baa90e53
parentffb85c3cd313b593083e4bb765c4a2810e6873aa (diff)
parent7a682339ce9eabd5ab00e7a604bed8accdb71cdb (diff)
Merge pull request #6954 from jantlwoomy/fix_userId_segmentation
Fix User ID Segmentation
-rw-r--r--plugins/API/API.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php
index 1f789011b0..2f5f21f4e9 100644
--- a/plugins/API/API.php
+++ b/plugins/API/API.php
@@ -160,8 +160,7 @@ class API extends \Piwik\Plugin\API
'name' => 'General_UserId',
'segment' => 'userId',
'acceptedValues' => 'any non empty unique string identifying the user (such as an email address or a username).',
- 'sqlSegment' => 'log_visit.idvisitor',
- 'sqlFilterValue' => array('Piwik\Common', 'convertUserIdToVisitorIdBin'),
+ 'sqlSegment' => 'log_visit.user_id',
'sqlFilter' => array($this, 'checkSegmentMatchTypeIsValidForUser'),
'permission' => $isAuthenticatedWithViewAccess,