diff options
author | Matthieu Aubry <matt@piwik.org> | 2015-02-10 00:46:35 +0300 |
---|---|---|
committer | Matthieu Aubry <matt@piwik.org> | 2015-02-10 00:46:35 +0300 |
commit | 25409d6d66524f71cc1379c409d73cefbd72ae59 (patch) | |
tree | bd40c6f3d711cee5abb47e5797346259baa90e53 | |
parent | ffb85c3cd313b593083e4bb765c4a2810e6873aa (diff) | |
parent | 7a682339ce9eabd5ab00e7a604bed8accdb71cdb (diff) |
Merge pull request #6954 from jantlwoomy/fix_userId_segmentation
Fix User ID Segmentation
-rw-r--r-- | plugins/API/API.php | 3 |
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, |