From e5b1b8cbc686935612dc57cd2e51fa55888a04ac Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 15 May 2020 17:20:11 +0200 Subject: [statistics] Make ~ default for location filter --- modules-available/statistics/inc/statisticsfilter.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules-available/statistics/inc/statisticsfilter.inc.php b/modules-available/statistics/inc/statisticsfilter.inc.php index 519e4315..ed15c772 100644 --- a/modules-available/statistics/inc/statisticsfilter.inc.php +++ b/modules-available/statistics/inc/statisticsfilter.inc.php @@ -23,7 +23,7 @@ abstract class StatisticsFilter const OP_ORDINAL = ['=', '!=', '<', '>', '<=', '>=']; const OP_STRCMP = ['~', '!~', '=', '!=']; const OP_NOMINAL = ['=', '!=']; - const OP_LOCATIONS = ['=', '!=', '~']; + const OP_LOCATIONS = ['~', '=', '!=']; const OP_FUZZY_ORDINAL = ['=', '!=', '~', '!~', '<', '>', '<=', '>=']; /** @@ -491,7 +491,6 @@ class LocationStatisticsFilter extends EnumStatisticsFilter ]; } parent::__construct('locationid', $locs, self::OP_LOCATIONS); - } public function type() { return 'enum'; } -- cgit v1.2.3-55-g7522