diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-18 06:40:02 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-18 06:40:02 +0300 |
commit | 206660ba30564a162a210b94393cd3afeaf9cac5 (patch) | |
tree | 71f97426ed6a336a08d6a1123b5586384010ecd0 /plugins/DevicePlugins | |
parent | 107fe4d29728b28f7ca6e363ad0508270faa3bd8 (diff) |
#7437 Prevent percentages to go over 100% for browser plugin support
Diffstat (limited to 'plugins/DevicePlugins')
-rw-r--r-- | plugins/DevicePlugins/API.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/DevicePlugins/API.php b/plugins/DevicePlugins/API.php index 04f2668739..b4b33b8db3 100644 --- a/plugins/DevicePlugins/API.php +++ b/plugins/DevicePlugins/API.php @@ -92,6 +92,7 @@ class API extends \Piwik\Plugin\API $dataTable->queueFilter('ColumnCallbackAddMetadata', array('label', 'logo', __NAMESPACE__ . '\getPluginsLogo')); $dataTable->queueFilter('ColumnCallbackReplace', array('label', 'ucfirst')); + $dataTable->queueFilter('RangeCheck', array('nb_visits_percentage', 0, 1)); return $dataTable; } |