From 04dbede9390c3871c2d7efbbccc9f49534395a4e Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 31 Aug 2021 15:34:45 +0800 Subject: [PATCH 1/5] * Fix the execution view error. --- module/execution/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index ac295f910d..35a0472e04 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -3391,7 +3391,7 @@ class executionModel extends model $days = count($dateList) - 1; $rate = $days ? $firstTime / $days : ''; $baselineJSON = '['; - foreach($dateList as $i => $date) $baselineJSON .= round(($days - $i) * $rate, 1) . ','; + foreach($dateList as $i => $date) $baselineJSON .= round(($days - $i) * (int)$rate, 1) . ','; $baselineJSON = rtrim($baselineJSON, ',') . ']'; $chartData['labels'] = $this->report->convertFormat($dateList, DT_DATE5); From 006e9488e1fd046c70aa407fc49a2bae9cf181d3 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 31 Aug 2021 15:45:19 +0800 Subject: [PATCH 2/5] * Fix bug #14806. --- module/testcase/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testcase/model.php b/module/testcase/model.php index 9042ef66d2..5cd3c5d8b4 100644 --- a/module/testcase/model.php +++ b/module/testcase/model.php @@ -1478,7 +1478,7 @@ class testcaseModel extends model $id = $col->id; if($col->show) { - $class = 'c-' . $id; + $class = $id == 'title' ? 'c-name' : 'c-' . $id; $title = ''; if($id == 'title') { From aa678ec71c5ea47cd6f8c2b882f9921a960b5648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A1=E6=A0=8B?= Date: Tue, 31 Aug 2021 15:55:00 +0800 Subject: [PATCH 3/5] * Fix for get gitlab projects. --- module/gitlab/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/gitlab/model.php b/module/gitlab/model.php index 1d3b31d592..0942deab50 100644 --- a/module/gitlab/model.php +++ b/module/gitlab/model.php @@ -408,7 +408,7 @@ class gitlabModel extends model { $results = json_decode(commonModel::http($host . "?private_token={$gitlab->token}&simple=true&membership=true&page={$page}&per_page=100")); if(empty($results) or $page > 10) break; - $allResults = $allResults + $results; + $allResults = array_merge($allResults, $results); } return $allResults; From 8a8e02dc104193b655c8dc2394a5cf10ead1f9b3 Mon Sep 17 00:00:00 2001 From: liyuchun Date: Tue, 31 Aug 2021 15:58:39 +0800 Subject: [PATCH 4/5] * Fix bug #14783. --- module/product/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/product/model.php b/module/product/model.php index 7a50d3feb0..e9e891a509 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -1101,7 +1101,7 @@ class productModel extends model foreach($executions as $id => $execution) $projectIdList[$execution->project] = $execution->project; $executionPairs = array(0 => ''); - $projectPairs = $this->loadModel('project')->getPairsByIdList($projectIdList); + $projectPairs = $this->loadModel('project')->getPairsByIdList($projectIdList, 'all'); foreach($executions as $id => $execution) { if($execution->grade == 2 && isset($executions[$execution->parent])) From 6230063da097ce4696ac63bcae66bbda88532434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A1=E6=A0=8B?= Date: Tue, 31 Aug 2021 15:59:27 +0800 Subject: [PATCH 5/5] * Add autocomplete attr for input. --- module/user/view/login.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/user/view/login.html.php b/module/user/view/login.html.php index b39efc1e0d..acc432cfaa 100644 --- a/module/user/view/login.html.php +++ b/module/user/view/login.html.php @@ -35,11 +35,11 @@ if(empty($config->notMd5Pwd))js::import($jsRoot . 'md5.js'); user->account;?> - + user->password;?> - + config->safe->loginCaptcha)):?>