From 9fce0b01ef51410bfc3f93c7cf683a5f7bc24390 Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Wed, 10 Jan 2024 17:19:06 +0800 Subject: [PATCH] * Fix metric filter. --- module/metric/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/metric/model.php b/module/metric/model.php index 2585f33b8d..eb585077d5 100755 --- a/module/metric/model.php +++ b/module/metric/model.php @@ -1488,8 +1488,9 @@ class metricModel extends model $type = array(); $dateType = $this->getDateTypeByCode($code); - $type[] = $scope == 'system' ? 'system' : 'scope'; + if($scope != 'system') $type[] = 'scope'; if($dateType != 'nodate') $type[] = 'date'; + if(empty($type)) $type[] = 'system'; return implode('-', $type); }