From ceca5b027a81b7596cb48796ea17a488458238a3 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Fri, 20 Dec 2024 10:51:44 +0800 Subject: [PATCH] * [misc] modify lang. --- module/report/lang/de.php | 2 +- module/report/lang/en.php | 2 +- module/report/lang/fr.php | 2 +- module/report/lang/zh-cn.php | 2 +- module/report/tao.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module/report/lang/de.php b/module/report/lang/de.php index 481cce09f8..c7f19fb2d0 100644 --- a/module/report/lang/de.php +++ b/module/report/lang/de.php @@ -139,7 +139,7 @@ $lang->report->annualData->caseMonthActions = "Monthly case operation"; $lang->report->annualData->executionFields['name'] = "{$lang->executionCommon} name"; $lang->report->annualData->executionFields['story'] = "Finished stories"; $lang->report->annualData->executionFields['task'] = "Finished tasks"; -$lang->report->annualData->executionFields['bug'] = "Resolved bugs"; +$lang->report->annualData->executionFields['bug'] = "Repaired bugs"; $lang->report->annualData->productFields['name'] = "{$lang->productCommon} name"; $lang->report->annualData->productFields['plan'] = "Plans"; diff --git a/module/report/lang/en.php b/module/report/lang/en.php index e41fa7d895..d1520b550f 100644 --- a/module/report/lang/en.php +++ b/module/report/lang/en.php @@ -139,7 +139,7 @@ $lang->report->annualData->caseMonthActions = "Monthly case operation"; $lang->report->annualData->executionFields['name'] = "{$lang->executionCommon} name"; $lang->report->annualData->executionFields['story'] = "Finished stories"; $lang->report->annualData->executionFields['task'] = "Finished tasks"; -$lang->report->annualData->executionFields['bug'] = "Resolved bugs"; +$lang->report->annualData->executionFields['bug'] = "Repaired bugs"; $lang->report->annualData->productFields['name'] = "{$lang->productCommon} name"; $lang->report->annualData->productFields['plan'] = "Plans"; diff --git a/module/report/lang/fr.php b/module/report/lang/fr.php index 904c687e74..3c29030c3c 100644 --- a/module/report/lang/fr.php +++ b/module/report/lang/fr.php @@ -139,7 +139,7 @@ $lang->report->annualData->caseMonthActions = "Monthly case operation"; $lang->report->annualData->executionFields['name'] = "{$lang->executionCommon} name"; $lang->report->annualData->executionFields['story'] = "Finished stories"; $lang->report->annualData->executionFields['task'] = "Finished tasks"; -$lang->report->annualData->executionFields['bug'] = "Resolved bugs"; +$lang->report->annualData->executionFields['bug'] = "Repaired bugs"; $lang->report->annualData->productFields['name'] = "{$lang->productCommon} name"; $lang->report->annualData->productFields['plan'] = "Plans"; diff --git a/module/report/lang/zh-cn.php b/module/report/lang/zh-cn.php index 48fa784412..42cdd91f3c 100644 --- a/module/report/lang/zh-cn.php +++ b/module/report/lang/zh-cn.php @@ -139,7 +139,7 @@ $lang->report->annualData->caseMonthActions = "每月用例操作情况"; $lang->report->annualData->executionFields['name'] = "{$lang->executionCommon}名称"; $lang->report->annualData->executionFields['story'] = "完成{$lang->SRCommon}数"; $lang->report->annualData->executionFields['task'] = "完成任务数"; -$lang->report->annualData->executionFields['bug'] = "解决Bug数"; +$lang->report->annualData->executionFields['bug'] = "修复Bug数"; $lang->report->annualData->productFields['name'] = "{$lang->productCommon}名称"; $lang->report->annualData->productFields['plan'] = "创建计划数"; diff --git a/module/report/tao.php b/module/report/tao.php index a96bfaed1f..2711faffa0 100644 --- a/module/report/tao.php +++ b/module/report/tao.php @@ -93,7 +93,7 @@ class reportTao extends reportModel ->fetchAll('execution'); $finishedTask = array(); - foreach($taskStats as $executionID => $taskStat) $finishedTask[$executionID] = $taskStat->finishedTask; + if(!empty($taskStats)) foreach($taskStats as $executionID => $taskStat) $finishedTask[$executionID] = $taskStat->finishedTask; /* Get changed executions in this year. */ $executions = $this->dao->select('id,name')->from(TABLE_EXECUTION)->where('deleted')->eq(0) ->andwhere('type')->eq('sprint')