diff --git a/module/bug/config.php b/module/bug/config.php index 3746a33905..9538222575 100644 --- a/module/bug/config.php +++ b/module/bug/config.php @@ -38,89 +38,6 @@ $config->bug->exportFields = 'id, product, branch, module, project, execution, s lastEditedBy, lastEditedDate, files ,feedbackBy, notifyEmail'; -$config->bug->fieldList['id']['title'] = 'id'; - -$config->bug->fieldList['product']['title'] = 'product'; -$config->bug->fieldList['product']['control'] = 'hidden'; -$config->bug->fieldList['product']['dataSource'] = array('module' => 'product', 'method' => 'getPairs'); - -$config->bug->fieldList['branch']['title'] = 'branch'; -$config->bug->fieldList['branch']['control'] = 'select'; -$config->bug->fieldList['branch']['dataSource'] = array('module' => 'bug', 'method' => 'getRelatedObjects', 'params' => 'branch&id,name'); - -$config->bug->fieldList['module']['control'] = 'select'; -$config->bug->fieldList['module']['title'] = 'module'; -$config->bug->fieldList['module']['dataSource'] = array('module' => 'tree', 'method' => 'getOptionMenu', 'params' => '$productID&bug'); - -$config->bug->fieldList['project']['title'] = 'project'; -$config->bug->fieldList['project']['control'] = 'hidden'; -$config->bug->fieldList['project']['dataSource'] = array('module' => 'product', 'method' => 'getProjectPairsByProduct', 'params' => '$productID'); - -$config->bug->fieldList['execution']['title'] = 'execution'; -$config->bug->fieldList['execution']['dataSource'] = array('module' => 'product', 'method' =>'getAllExecutionPairsByProduct', 'params' => '$productID&$branch'); - -$config->bug->fieldList['story']['title'] = 'story'; -$config->bug->fieldList['story']['control'] = 'select'; -$config->bug->fieldList['story']['dataSource'] = array('module' => 'bug', 'method' =>'getRelatedObjects', 'params' => 'story&id,title'); - -$config->bug->fieldList['task']['title'] = 'task'; -$config->bug->fieldList['task']['dataSource'] = array('module' => 'bug', 'method' =>'getRelatedObjects', 'params' => 'task&id,name'); - -$config->bug->fieldList['steps']['title'] = 'steps'; -$config->bug->fieldList['steps']['control'] = 'textarea'; - -$config->bug->fieldList['status']['title'] = 'status'; - -$config->bug->fieldList['deadline']['title'] = 'deadline'; -$config->bug->fieldList['deadline']['control'] = 'date'; - -$config->bug->fieldList['activatedCount']['title'] = 'activatedCount'; - -$config->bug->fieldList['confirmed']['title'] = 'confirmed'; - -$config->bug->fieldList['mailto']['title'] = 'mailto'; - -$config->bug->fieldList['openedBy']['title'] = 'openedBy'; - -$config->bug->fieldList['openedDate']['title'] = 'openedDate'; - -$config->bug->fieldList['openedBuild']['title'] = 'openedBuild'; -$config->bug->fieldList['openedBuild']['control'] = 'multiple'; -$config->bug->fieldList['openedBuild']['dataSource'] = array('module' => 'bug', 'method' =>'getRelatedObjects', 'params' => 'openedBuild&id,name'); - -$config->bug->fieldList['assignedTo']['title'] = 'assignedTo'; - -$config->bug->fieldList['assignedDate']['title'] = 'assignedDate'; - -$config->bug->fieldList['resolvedBy']['title'] = 'resolvedBy'; - -$config->bug->fieldList['resolution']['title'] = 'resolution'; - -$config->bug->fieldList['resolvedBuild']['title'] = 'resolvedBuild'; - -$config->bug->fieldList['resolvedDate']['title'] = 'resolvedDate'; - -$config->bug->fieldList['closedBy']['title'] = 'closedBy'; - -$config->bug->fieldList['closedDate']['title'] = 'closedDate'; - -$config->bug->fieldList['duplicateBug']['title'] = 'duplicateBug'; - -$config->bug->fieldList['linkBug']['title'] = 'linkBug'; - -$config->bug->fieldList['case']['title'] = 'case'; -$config->bug->fieldList['case']['dataSource'] = array('module' => 'bug', 'method' =>'getRelatedObjects', 'params' => 'case&id,title'); - -$config->bug->fieldList['lastEditedBy']['title'] = 'lastEditedBy'; - -$config->bug->fieldList['lastEditedDate']['title'] = 'lastEditedDate'; - -$config->bug->fieldList['files']['title'] = 'files'; - -$config->bug->fieldList['feedbackBy']['title'] = 'feedbackBy'; - -$config->bug->fieldList['notifyEmail']['title'] = 'notifyEmail'; - if($config->systemMode == 'classic') $config->bug->exportFields = str_replace(' project,', '', $config->bug->exportFields); $config->bug->list->customCreateFields = 'execution,noticefeedbackBy,story,task,pri,severity,os,browser,deadline,mailto,keywords'; @@ -254,6 +171,14 @@ $config->bug->datatable->fieldList['id']['fixed'] = 'left'; $config->bug->datatable->fieldList['id']['width'] = '70'; $config->bug->datatable->fieldList['id']['required'] = 'yes'; +$config->bug->datatable->fieldList['product']['title'] = 'product'; +$config->bug->datatable->fieldList['product']['control'] = 'hidden'; +$config->bug->datatable->fieldList['product']['dataSource'] = array('module' => 'product', 'method' => 'getPairs'); + +$config->bug->datatable->fieldList['module']['control'] = 'select'; +$config->bug->datatable->fieldList['module']['title'] = 'module'; +$config->bug->datatable->fieldList['module']['dataSource'] = array('module' => 'tree', 'method' => 'getOptionMenu', 'params' => '$productID&bug'); + $config->bug->datatable->fieldList['severity']['title'] = 'severityAB'; $config->bug->datatable->fieldList['severity']['fixed'] = 'left'; $config->bug->datatable->fieldList['severity']['width'] = '50'; @@ -277,10 +202,12 @@ $config->bug->datatable->fieldList['title']['width'] = 'auto'; $config->bug->datatable->fieldList['title']['required'] = 'yes'; $config->bug->datatable->fieldList['title']['minWidth'] = '200'; -$config->bug->datatable->fieldList['branch']['title'] = 'branch'; -$config->bug->datatable->fieldList['branch']['fixed'] = 'left'; -$config->bug->datatable->fieldList['branch']['width'] = '100'; -$config->bug->datatable->fieldList['branch']['required'] = 'no'; +$config->bug->datatable->fieldList['branch']['title'] = 'branch'; +$config->bug->datatable->fieldList['branch']['fixed'] = 'left'; +$config->bug->datatable->fieldList['branch']['width'] = '100'; +$config->bug->datatable->fieldList['branch']['required'] = 'no'; +$config->bug->datatable->fieldList['branch']['control'] = 'select'; +$config->bug->datatable->fieldList['branch']['dataSource'] = array('module' => 'bug', 'method' => 'getRelatedObjects', 'params' => 'branch&id,name'); $config->bug->datatable->fieldList['type']['title'] = 'type'; $config->bug->datatable->fieldList['type']['fixed'] = 'no'; @@ -289,16 +216,19 @@ $config->bug->datatable->fieldList['type']['required'] = 'no'; if($config->systemMode == 'new') { - $config->bug->datatable->fieldList['project']['title'] = 'project'; - $config->bug->datatable->fieldList['project']['fixed'] = 'no'; - $config->bug->datatable->fieldList['project']['width'] = '120'; - $config->bug->datatable->fieldList['project']['required'] = 'no'; + $config->bug->datatable->fieldList['project']['title'] = 'project'; + $config->bug->datatable->fieldList['project']['fixed'] = 'no'; + $config->bug->datatable->fieldList['project']['width'] = '120'; + $config->bug->datatable->fieldList['project']['required'] = 'no'; + $config->bug->datatable->fieldList['project']['control'] = 'hidden'; + $config->bug->datatable->fieldList['project']['dataSource'] = array('module' => 'product', 'method' => 'getProjectPairsByProduct', 'params' => '$productID'); } -$config->bug->datatable->fieldList['execution']['title'] = 'execution'; -$config->bug->datatable->fieldList['execution']['fixed'] = 'no'; -$config->bug->datatable->fieldList['execution']['width'] = '120'; -$config->bug->datatable->fieldList['execution']['required'] = 'no'; +$config->bug->datatable->fieldList['execution']['title'] = 'execution'; +$config->bug->datatable->fieldList['execution']['fixed'] = 'no'; +$config->bug->datatable->fieldList['execution']['width'] = '120'; +$config->bug->datatable->fieldList['execution']['required'] = 'no'; +$config->bug->datatable->fieldList['execution']['dataSource'] = array('module' => 'product', 'method' =>'getAllExecutionPairsByProduct', 'params' => '$productID&$branch'); $config->bug->datatable->fieldList['plan']['title'] = 'plan'; $config->bug->datatable->fieldList['plan']['fixed'] = 'no'; @@ -320,15 +250,18 @@ $config->bug->datatable->fieldList['activatedDate']['fixed'] = 'no'; $config->bug->datatable->fieldList['activatedDate']['width'] = '90'; $config->bug->datatable->fieldList['activatedDate']['required'] = 'no'; -$config->bug->datatable->fieldList['story']['title'] = 'story'; -$config->bug->datatable->fieldList['story']['fixed'] = 'no'; -$config->bug->datatable->fieldList['story']['width'] = '120'; -$config->bug->datatable->fieldList['story']['required'] = 'no'; +$config->bug->datatable->fieldList['story']['title'] = 'story'; +$config->bug->datatable->fieldList['story']['fixed'] = 'no'; +$config->bug->datatable->fieldList['story']['width'] = '120'; +$config->bug->datatable->fieldList['story']['required'] = 'no'; +$config->bug->datatable->fieldList['story']['control'] = 'select'; +$config->bug->datatable->fieldList['story']['dataSource'] = array('module' => 'bug', 'method' =>'getRelatedObjects', 'params' => 'story&id,title'); -$config->bug->datatable->fieldList['task']['title'] = 'task'; -$config->bug->datatable->fieldList['task']['fixed'] = 'no'; -$config->bug->datatable->fieldList['task']['width'] = '120'; -$config->bug->datatable->fieldList['task']['required'] = 'no'; +$config->bug->datatable->fieldList['task']['title'] = 'task'; +$config->bug->datatable->fieldList['task']['fixed'] = 'no'; +$config->bug->datatable->fieldList['task']['width'] = '120'; +$config->bug->datatable->fieldList['task']['required'] = 'no'; +$config->bug->datatable->fieldList['task']['dataSource'] = array('module' => 'bug', 'method' =>'getRelatedObjects', 'params' => 'task&id,name'); $config->bug->datatable->fieldList['toTask']['title'] = 'toTask'; $config->bug->datatable->fieldList['toTask']['fixed'] = 'no'; @@ -365,10 +298,12 @@ $config->bug->datatable->fieldList['openedDate']['fixed'] = 'no'; $config->bug->datatable->fieldList['openedDate']['width'] = '90'; $config->bug->datatable->fieldList['openedDate']['required'] = 'no'; -$config->bug->datatable->fieldList['openedBuild']['title'] = 'openedBuild'; -$config->bug->datatable->fieldList['openedBuild']['fixed'] = 'no'; -$config->bug->datatable->fieldList['openedBuild']['width'] = '120'; -$config->bug->datatable->fieldList['openedBuild']['required'] = 'no'; +$config->bug->datatable->fieldList['openedBuild']['title'] = 'openedBuild'; +$config->bug->datatable->fieldList['openedBuild']['fixed'] = 'no'; +$config->bug->datatable->fieldList['openedBuild']['width'] = '120'; +$config->bug->datatable->fieldList['openedBuild']['required'] = 'no'; +$config->bug->datatable->fieldList['openedBuild']['control'] = 'multiple'; +$config->bug->datatable->fieldList['openedBuild']['dataSource'] = array('module' => 'bug', 'method' =>'getRelatedObjects', 'params' => 'openedBuild&id,name'); $config->bug->datatable->fieldList['assignedTo']['title'] = 'assignedToAB'; $config->bug->datatable->fieldList['assignedTo']['fixed'] = 'no'; @@ -384,6 +319,7 @@ $config->bug->datatable->fieldList['deadline']['title'] = 'deadline'; $config->bug->datatable->fieldList['deadline']['fixed'] = 'no'; $config->bug->datatable->fieldList['deadline']['width'] = '90'; $config->bug->datatable->fieldList['deadline']['required'] = 'no'; +$config->bug->datatable->fieldList['deadline']['control'] = 'date'; $config->bug->datatable->fieldList['resolvedBy']['title'] = 'resolvedByAB'; $config->bug->datatable->fieldList['resolvedBy']['fixed'] = 'no'; @@ -430,6 +366,12 @@ $config->bug->datatable->fieldList['actions']['fixed'] = 'right'; $config->bug->datatable->fieldList['actions']['width'] = '150'; $config->bug->datatable->fieldList['actions']['required'] = 'yes'; +$config->bug->datatable->fieldList['steps']['title'] = 'steps'; +$config->bug->datatable->fieldList['steps']['control'] = 'textarea'; + +$config->bug->datatable->fieldList['case']['title'] = 'case'; +$config->bug->datatable->fieldList['case']['dataSource'] = array('module' => 'bug', 'method' =>'getRelatedObjects', 'params' => 'case&id,title'); + $config->bug->colorList = new stdclass(); $config->bug->colorList->pri[0] = '#c0c0c0'; $config->bug->colorList->pri[1] = '#d50000'; diff --git a/module/caselib/control.php b/module/caselib/control.php index 0b74d70736..4d7ce3add2 100644 --- a/module/caselib/control.php +++ b/module/caselib/control.php @@ -442,7 +442,7 @@ class caselib extends control * @access public * @return void */ - public function exportTemplet($libID) + public function exportTemplate($libID) { $this->loadModel('testcase'); if($_POST) diff --git a/module/caselib/lang/de.php b/module/caselib/lang/de.php index 652875e151..bbe008e95b 100644 --- a/module/caselib/lang/de.php +++ b/module/caselib/lang/de.php @@ -21,7 +21,7 @@ $lang->caselib->createCase = 'Create Case'; $lang->caselib->delete = "Delete Suite"; $lang->caselib->linkVersion = "Version"; $lang->caselib->deleted = 'Deleted'; -$lang->caselib->exportTemplet = 'Export Template'; +$lang->caselib->exportTemplate = 'Export Template'; $lang->caselib->batchCreateCase = 'Batch Create'; $lang->caselib->import = 'Import'; $lang->caselib->showImport = 'Imported Data'; diff --git a/module/caselib/lang/en.php b/module/caselib/lang/en.php index 652875e151..bbe008e95b 100644 --- a/module/caselib/lang/en.php +++ b/module/caselib/lang/en.php @@ -21,7 +21,7 @@ $lang->caselib->createCase = 'Create Case'; $lang->caselib->delete = "Delete Suite"; $lang->caselib->linkVersion = "Version"; $lang->caselib->deleted = 'Deleted'; -$lang->caselib->exportTemplet = 'Export Template'; +$lang->caselib->exportTemplate = 'Export Template'; $lang->caselib->batchCreateCase = 'Batch Create'; $lang->caselib->import = 'Import'; $lang->caselib->showImport = 'Imported Data'; diff --git a/module/caselib/lang/fr.php b/module/caselib/lang/fr.php index 9f02e7f2e9..6e1ce27d8d 100644 --- a/module/caselib/lang/fr.php +++ b/module/caselib/lang/fr.php @@ -21,7 +21,7 @@ $lang->caselib->createCase = 'Créer CasTest'; $lang->caselib->delete = "Supprimer Suite"; $lang->caselib->linkVersion = "Version"; $lang->caselib->deleted = 'Supprimé'; -$lang->caselib->exportTemplet = 'Exporter Modèle'; +$lang->caselib->exportTemplate = 'Exporter Modèle'; $lang->caselib->batchCreateCase = 'Créer par lot'; $lang->caselib->import = 'Importer'; $lang->caselib->showImport = 'Données Importées'; diff --git a/module/caselib/lang/vi.php b/module/caselib/lang/vi.php index 48202a34e2..37190c1d37 100644 --- a/module/caselib/lang/vi.php +++ b/module/caselib/lang/vi.php @@ -21,7 +21,7 @@ $lang->caselib->createCase = 'Tạo tình huống'; $lang->caselib->delete = "Xóa Suite"; $lang->caselib->linkVersion = "Phiên bản"; $lang->caselib->deleted = 'Đã xóa'; -$lang->caselib->exportTemplet = 'Xuất mẫu'; +$lang->caselib->exportTemplate = 'Xuất mẫu'; $lang->caselib->batchCreateCase = 'Tạo hàng loạt'; $lang->caselib->import = 'Nhập'; $lang->caselib->importAction = 'Nhập tình huống'; diff --git a/module/caselib/lang/zh-cn.php b/module/caselib/lang/zh-cn.php index e54c946d4e..85a2dfed93 100644 --- a/module/caselib/lang/zh-cn.php +++ b/module/caselib/lang/zh-cn.php @@ -21,7 +21,7 @@ $lang->caselib->createCase = '创建用例'; $lang->caselib->delete = "删除"; $lang->caselib->linkVersion = "版本"; $lang->caselib->deleted = '已删除'; -$lang->caselib->exportTemplet = '导出模板'; +$lang->caselib->exportTemplate = '导出模板'; $lang->caselib->batchCreateCase = '批量创建用例'; $lang->caselib->import = '导入'; $lang->caselib->showImport = '显示导入数据'; diff --git a/module/caselib/lang/zh-tw.php b/module/caselib/lang/zh-tw.php index e0043a96a7..7b0c73a0a8 100644 --- a/module/caselib/lang/zh-tw.php +++ b/module/caselib/lang/zh-tw.php @@ -21,7 +21,7 @@ $lang->caselib->createCase = '創建用例'; $lang->caselib->delete = "刪除"; $lang->caselib->linkVersion = "版本"; $lang->caselib->deleted = '已刪除'; -$lang->caselib->exportTemplet = '導出模板'; +$lang->caselib->exportTemplate = '導出模板'; $lang->caselib->batchCreateCase = '批量創建用例'; $lang->caselib->import = '導入'; $lang->caselib->showImport = '顯示導入數據'; diff --git a/module/caselib/view/browse.html.php b/module/caselib/view/browse.html.php index 20a7880ebc..db1244520f 100644 --- a/module/caselib/view/browse.html.php +++ b/module/caselib/view/browse.html.php @@ -57,7 +57,7 @@ js::set('flow', $config->global->flow); } ?>