diff options
author | Matthieu Aubry <matt@piwik.org> | 2015-03-18 05:33:52 +0300 |
---|---|---|
committer | Matthieu Aubry <matt@piwik.org> | 2015-03-18 05:33:52 +0300 |
commit | c3bc0113fe3043b53ff6a96e766c2fc8dc0f1229 (patch) | |
tree | 923a51de4569ddec60bd3e22133b03b9d4c47cd9 /plugins/DevicesDetection | |
parent | 7e0d617359f0baf167d3f053f3e99a60e3c09a86 (diff) | |
parent | 76f7d00e92caed107b00b5e4c68218ea6ed78fcb (diff) |
Merge pull request #7465 from piwik/datatable_tweaks
Various performance improvements and bugfixes.
Diffstat (limited to 'plugins/DevicesDetection')
-rw-r--r-- | plugins/DevicesDetection/API.php | 6 | ||||
-rw-r--r-- | plugins/DevicesDetection/Reports/Base.php | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/plugins/DevicesDetection/API.php b/plugins/DevicesDetection/API.php index 1f4a53e48c..b6e484f924 100644 --- a/plugins/DevicesDetection/API.php +++ b/plugins/DevicesDetection/API.php @@ -216,7 +216,11 @@ class API extends \Piwik\Plugin\API */ public function getBrowserFamilies($idSite, $period, $date, $segment = false) { - return $this->getBrowsers($idSite, $period, $date, $segment); + $table = $this->getBrowsers($idSite, $period, $date, $segment); + // this one will not be sorted automatically by nb_visits since there is no Report class for it. + $table->filter('Sort', array(Metrics::INDEX_NB_VISITS, 'desc')); + + return $table; } /** diff --git a/plugins/DevicesDetection/Reports/Base.php b/plugins/DevicesDetection/Reports/Base.php index 9683678ed7..15eac96a4a 100644 --- a/plugins/DevicesDetection/Reports/Base.php +++ b/plugins/DevicesDetection/Reports/Base.php @@ -12,8 +12,6 @@ use Piwik\Metrics; abstract class Base extends \Piwik\Plugin\Report { - protected $defaultSortColumn = 'nb_visits'; - protected function init() { $this->category = 'DevicesDetection_DevicesDetection'; |