From 837c796c32df2d504437dde5e058eb307d4dd287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B9=BF=E6=98=8E?= Date: Tue, 5 Jul 2022 15:07:31 +0800 Subject: [PATCH] * Fix code details. --- module/execution/model.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index 9cb8195a56..5b81211999 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -3211,7 +3211,7 @@ class executionModel extends model * @param string $type * @param array $dateList * @access public - * @return void + * @return array */ public function buildCFDData($executionID, $dateList, $type) { @@ -3221,10 +3221,8 @@ class executionModel extends model if(empty($setGroup)) return array(); $chartData['labels'] = $this->report->convertFormat($dateList, DT_DATE5); - //$chartData['line'] = $this->report->createSingleJSON($sets, $dateList); + $chartData['line'] = array(); - - $chartData['line'] = array(); foreach($setGroup as $name => $sets) { $chartData['line'][$name] = $this->report->createSingleJSON($sets, $dateList); @@ -3240,7 +3238,7 @@ class executionModel extends model * @param string $type * @param array $dateList * @access public - * @return void + * @return array */ public function getCFDData($executionID = 0, $dateList = array(), $type = 'story') {