summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2020-05-15 17:20:11 +0200
committerSimon Rettberg2020-05-15 17:20:11 +0200
commite5b1b8cbc686935612dc57cd2e51fa55888a04ac (patch)
tree180f3eb8718d0e9bf657031284aefb384bc36d0c
parent[rebootcontrol] cron: Bail out if WOL listening failed (diff)
downloadslx-admin-e5b1b8cbc686935612dc57cd2e51fa55888a04ac.tar.gz
slx-admin-e5b1b8cbc686935612dc57cd2e51fa55888a04ac.tar.xz
slx-admin-e5b1b8cbc686935612dc57cd2e51fa55888a04ac.zip
[statistics] Make ~ default for location filter
-rw-r--r--modules-available/statistics/inc/statisticsfilter.inc.php3
1 files changed, 1 insertions, 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'; }