From 9b25cc961efdd0a27f24c850a88fccd71f2d1de7 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Thu, 25 Mar 2021 14:40:38 +0800 Subject: [PATCH] * Fix detail for group. --- module/group/lang/resource.php | 16 +++++++--------- module/product/control.php | 12 ------------ module/program/control.php | 15 --------------- 3 files changed, 7 insertions(+), 36 deletions(-) diff --git a/module/group/lang/resource.php b/module/group/lang/resource.php index 0d7d809ecf..9974ed4305 100644 --- a/module/group/lang/resource.php +++ b/module/group/lang/resource.php @@ -144,8 +144,6 @@ if($config->systemMode == 'new') { /* Program. */ $lang->resource->program = new stdclass(); - $lang->resource->program->createGuide = 'createGuide'; - //$lang->resource->program->index = 'index'; $lang->resource->program->browse = 'browse'; $lang->resource->program->product = 'product'; $lang->resource->program->create = 'create'; @@ -162,8 +160,6 @@ if($config->systemMode == 'new') $lang->resource->program->batchUnlinkStakeholders = 'batchUnlinkStakeholders'; $lang->resource->program->export = 'export'; - $lang->program->methodOrder[0] = 'createGuide'; - //$lang->program->methodOrder[5] = 'index'; $lang->program->methodOrder[10] = 'browse'; $lang->program->methodOrder[15] = 'product'; $lang->program->methodOrder[20] = 'create'; @@ -213,6 +209,7 @@ if($config->systemMode == 'new') $lang->resource->project->bug = 'bug'; $lang->resource->project->testcase = 'testcase'; $lang->resource->project->testtask = 'testtask'; + $lang->resource->project->execution = 'execution'; $lang->project->methodOrder[0] = 'index'; $lang->project->methodOrder[5] = 'browse'; @@ -246,6 +243,7 @@ if($config->systemMode == 'new') $lang->project->methodOrder[145] = 'bug'; $lang->project->methodOrder[150] = 'testcase'; $lang->project->methodOrder[155] = 'testtask'; + $lang->project->methodOrder[160] = 'execution'; /* Personnel . */ $lang->resource->personnel = new stdclass(); @@ -517,7 +515,7 @@ $lang->release->methodOrder[70] = 'changeStatus'; /* Execution. */ $lang->resource->execution = new stdclass(); -//$lang->resource->execution->index = 'index'; +$lang->resource->execution->index = 'index'; $lang->resource->execution->view = 'view'; $lang->resource->execution->browse = 'browse'; $lang->resource->execution->create = 'createExec'; @@ -561,10 +559,10 @@ $lang->resource->execution->printKanban = 'printKanbanAction'; $lang->resource->execution->tree = 'treeAction'; $lang->resource->execution->treeTask = 'treeOnlyTask'; $lang->resource->execution->treeStory = 'treeOnlyStory'; -//$lang->resource->execution->all = 'allExecutionAB'; +$lang->resource->execution->all = 'allExecutionAB'; $lang->resource->execution->kanbanHideCols = 'kanbanHideCols'; $lang->resource->execution->kanbanColsColor = 'kanbanColsColor'; -//$lang->resource->execution->export = 'exportAction'; +$lang->resource->execution->export = 'exportAction'; $lang->resource->execution->storyKanban = 'storyKanban'; $lang->resource->execution->storySort = 'storySort'; $lang->resource->execution->whitelist = 'whitelist'; @@ -618,8 +616,8 @@ $lang->execution->methodOrder[205] = 'kanbanColsColor'; $lang->execution->methodOrder[210] = 'tree'; $lang->execution->methodOrder[215] = 'treeTask'; $lang->execution->methodOrder[220] = 'treeStory'; -//$lang->execution->methodOrder[225] = 'all'; -//$lang->execution->methodOrder[230] = 'export'; +$lang->execution->methodOrder[225] = 'all'; +$lang->execution->methodOrder[230] = 'export'; $lang->execution->methodOrder[235] = 'storyKanban'; $lang->execution->methodOrder[240] = 'storySort'; $lang->execution->methodOrder[245] = 'whitelist'; diff --git a/module/product/control.php b/module/product/control.php index a5b85ba588..1bf88f2bd9 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -1172,18 +1172,6 @@ class product extends control $this->display(); } - /** - * Doc for compatible. - * - * @param int $productID - * @access public - * @return void - */ - public function doc($productID) - { - $this->locate($this->createLink('doc', 'objectLibs', "type=product&objectID=$productID&from=product")); - } - /** * Build of product. * diff --git a/module/program/control.php b/module/program/control.php index 712d2bce21..1640e0ecd6 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -18,21 +18,6 @@ class program extends control $this->loadModel('execution'); } - /** - * Program create guide. - * - * @param int $programID - * @param string $from - * @access public - * @return void - */ - public function createGuide($programID = 0, $from = 'PRJ') - { - $this->view->from = $from; - $this->view->programID = $programID; - $this->display(); - } - /** * Program list. *