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); }