From c31564f857d334b3b9be3974312eabe578f95a2c Mon Sep 17 00:00:00 2001 From: guanxiying Date: Wed, 27 Nov 2019 15:12:17 +0800 Subject: [PATCH 1/3] * Strtoupper sp. --- module/story/lang/en.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/lang/en.php b/module/story/lang/en.php index ed545abfa2..f09a433a07 100644 --- a/module/story/lang/en.php +++ b/module/story/lang/en.php @@ -76,7 +76,7 @@ $lang->story->assign = 'Assign'; $lang->story->verify = 'Acceptance'; $lang->story->pri = 'Priority'; $lang->story->estimate = "Estimates {$lang->hourCommon}"; -$lang->story->estimateAB = 'Est.' . $lang->hourCommon == 'hour' ? '(h)' : '(sp)'; +$lang->story->estimateAB = 'Est.' . $lang->hourCommon == 'hour' ? '(h)' : '(SP)'; $lang->story->hour = $lang->hourCommon; $lang->story->status = 'Status'; $lang->story->subStatus = 'Sub Status'; From 208852492f90d9118c46b673ec067c0fe3a0b6f0 Mon Sep 17 00:00:00 2001 From: guanxiying Date: Wed, 27 Nov 2019 15:14:30 +0800 Subject: [PATCH 2/3] =?UTF-8?q?*=20Fix=20=E3=80=82in=20en=20lang=20file.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/custom/lang/en.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/custom/lang/en.php b/module/custom/lang/en.php index fac925d469..09a344ff86 100644 --- a/module/custom/lang/en.php +++ b/module/custom/lang/en.php @@ -98,7 +98,7 @@ $lang->custom->notice->invalidStringKey = 'The key should be lowercase letters, $lang->custom->notice->cannotSetTimezone = 'date_default_timezone_set does not exist or is disabled. Timezone cannot be set.'; $lang->custom->notice->noClosedBlock = 'You have no blocks that are closed permanently.'; $lang->custom->notice->required = 'The selected field is required.'; -$lang->custom->notice->conceptResult = 'According to your preference, %s-%s is set for you. Use %s + %s。'; +$lang->custom->notice->conceptResult = 'According to your preference, %s-%s is set for you. Use %s + %s.'; $lang->custom->notice->conceptPath = 'Go to Admin -> Custom -> Concept to set it.'; $lang->custom->notice->indexPage['product'] = "ZenTao 8.2+ has Product Home. Do you want to go to Product Home?"; From 97bae2e030916a56ea820bbfae54f5aac2e6801f Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Wed, 27 Nov 2019 17:14:09 +0800 Subject: [PATCH 3/3] * Fix code logic. --- module/testtask/control.php | 2 +- module/tree/model.php | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/module/testtask/control.php b/module/testtask/control.php index b1c462d387..6db1facb27 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -964,7 +964,7 @@ class testtask extends control ->andWhere('t2.status')->ne('wait') ->fetchGroup('case', 'id'); - $this->view->caseIDList = $caseIDList; + $this->view->caseIDList = array_keys($cases); $this->view->productID = $productID; $this->view->title = $this->lang->testtask->batchRun; $this->view->position[] = $this->lang->testtask->common; diff --git a/module/tree/model.php b/module/tree/model.php index ef61693265..e1579ccd74 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -39,24 +39,21 @@ class treeModel extends model ->beginIF($type == 'bug')->orWhere('type')->eq('bug')->fi() ->beginIF($type == 'case')->orWhere('type')->eq('case')->fi() ->andWhere('deleted')->eq('0') + ->orderBy('grade asc') ->fetchAll(); $pairs = array(); $pairs[0] = '/'; foreach($modules as $module) { - if($module->parent == '0') + if($module->grade == 1) { $pairs[$module->id] = '/' . $module->name; continue; } - $path = substr($module->path, 1, -1); - $relatedModules = $this->dao->select('id, name')->from(TABLE_MODULE)->where('id')->in($path)->orderBy('grade')->fetchPairs(); - $modulePath = ''; - - foreach($relatedModules as $moduleName) $modulePath .= '/' . $moduleName; - $pairs[$module->id] = $modulePath; + $moduleName = '/' . $module->name; + $pairs[$module->id] = isset($pairs[$module->parent]) ? $pairs[$module->parent] . $moduleName : $moduleName; } return $pairs;