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:
authorThomas Steur <thomas.steur@gmail.com>2015-01-29 06:48:23 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-02-13 08:23:10 +0300
commit8ef47c8e4a3fb0094b4b0c19df8ed18c58cf7a6f (patch)
tree162315afc7f5a5bc0c8840eff30251a76b665b6f /plugins/Contents/API.php
parentec8dc0f150d71b752188dac3d01d29950ae6f869 (diff)
refs #4633 open segmented visitor log with one click on a row
Diffstat (limited to 'plugins/Contents/API.php')
-rw-r--r--plugins/Contents/API.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/Contents/API.php b/plugins/Contents/API.php
index 43d07b7cdc..968231a702 100644
--- a/plugins/Contents/API.php
+++ b/plugins/Contents/API.php
@@ -37,6 +37,17 @@ class API extends \Piwik\Plugin\API
Piwik::checkUserHasViewAccess($idSite);
$recordName = Dimensions::getRecordNameForAction($name);
$dataTable = Archive::getDataTableFromArchive($recordName, $idSite, $period, $date, $segment, $expanded, $idSubtable);
+
+ if (empty($idSubtable)) {
+ $dataTable->filter('AddSegmentValue', array(function ($label) {
+ if ($label === Archiver::CONTENT_PIECE_NOT_SET) {
+ return false;
+ }
+
+ return $label;
+ }));
+ }
+
$this->filterDataTable($dataTable);
return $dataTable;
}