From 3d113363c2cf0dcaace155f1efbc3bd90a71615f Mon Sep 17 00:00:00 2001 From: zhouxin Date: Mon, 20 May 2024 14:03:25 +0800 Subject: [PATCH] * Fix bug #49745. --- module/metric/zen.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/metric/zen.php b/module/metric/zen.php index 87e86fc883..64adc7867a 100644 --- a/module/metric/zen.php +++ b/module/metric/zen.php @@ -278,7 +278,7 @@ class metricZen extends metric $calc->calculate($reuseMetrics); } - protected function getRecordByCodeAndDate($code, $calc, $date) + protected function getRecordByCodeAndDate($code, $calc, $date, $type = 'single') { $now = helper::now(); @@ -286,7 +286,7 @@ class metricZen extends metric $dateType = $this->metric->getDateTypeByCode($code); if($dateType == 'nodate') return array(); - if($this->metric->checkHasInferenceOfDate($code, $dateType, $date)) return array(); + if($type == 'all' && $this->metric->checkHasInferenceOfDate($code, $dateType, $date)) return array(); $dateConfig = $this->metric->parseDateStr($date, $dateType); $recordCommon = $this->buildRecordCommonFields($metric->id, $code, $now, $dateConfig);