diff --git a/module/admin/model.php b/module/admin/model.php index e2b8302278..03262e271f 100755 --- a/module/admin/model.php +++ b/module/admin/model.php @@ -320,6 +320,11 @@ class adminModel extends model { $menu['disabled'] = true; if(!isset($menu['link'])) $menu['link'] = ''; + if($menuKey == 'company') + { + $dept = $this->dao->select('id')->from(TABLE_DEPT)->fetch(); + if($dept and common::hasPriv('company', 'browse')) $menu['link'] = helper::createLink('company', 'browse'); + } /* Set links to authorized navigation. */ if(isset($menu['subMenu'])) diff --git a/module/build/js/create.js b/module/build/js/create.js index 0626390b86..83002b4ade 100644 --- a/module/build/js/create.js +++ b/module/build/js/create.js @@ -49,6 +49,8 @@ $().ready(function() } }); $('#product').change(); + + $('[data-toggle="popover"]').popover(); }); /** diff --git a/module/build/view/create.html.php b/module/build/view/create.html.php index 021e030358..d664903546 100644 --- a/module/build/view/create.html.php +++ b/module/build/view/create.html.php @@ -60,7 +60,9 @@ build->builds;?> build->placeholder->multipleSelect}'");?> - build->notice->autoRelation;?> + + + build->name;?> diff --git a/module/common/lang/de.php b/module/common/lang/de.php index ca5edacdbc..1443438c5d 100644 --- a/module/common/lang/de.php +++ b/module/common/lang/de.php @@ -339,7 +339,7 @@ $lang->searchObjects['caselib'] = 'Case Library'; $lang->searchObjects['testreport'] = 'Test-Bericht'; $lang->searchObjects['program'] = 'Program'; $lang->searchObjects['project'] = $lang->projectCommon; -$lang->searchObjects['execution'] = $lang->executionCommon; +$lang->searchObjects['execution'] = $lang->execution->common; $lang->searchObjects['user'] = 'User'; $lang->searchTips = ''; @@ -363,7 +363,7 @@ $lang->visionList['lite'] = 'Operation Management Interface'; $lang->createObjects['todo'] = 'Todo'; $lang->createObjects['effort'] = 'Effort'; $lang->createObjects['bug'] = 'Bug'; -$lang->createObjects['story'] = 'Story'; +$lang->createObjects['story'] = $lang->SRCommon; $lang->createObjects['task'] = 'Task'; $lang->createObjects['testcase'] = 'Case'; $lang->createObjects['execution'] = $lang->execution->common; diff --git a/module/common/lang/en.php b/module/common/lang/en.php index 0249557bfc..1b95f2054a 100644 --- a/module/common/lang/en.php +++ b/module/common/lang/en.php @@ -339,7 +339,7 @@ $lang->searchObjects['caselib'] = 'Case Library'; $lang->searchObjects['testreport'] = 'Test Report'; $lang->searchObjects['program'] = 'Program'; $lang->searchObjects['project'] = $lang->projectCommon; -$lang->searchObjects['execution'] = $lang->executionCommon; +$lang->searchObjects['execution'] = $lang->execution->common; $lang->searchObjects['user'] = 'User'; $lang->searchTips = 'ID (ctrl+g)'; @@ -363,7 +363,7 @@ $lang->visionList['lite'] = 'Operation Management Interface'; $lang->createObjects['todo'] = 'Todo'; $lang->createObjects['effort'] = 'Effort'; $lang->createObjects['bug'] = 'Bug'; -$lang->createObjects['story'] = 'Story'; +$lang->createObjects['story'] = $lang->SRCommon; $lang->createObjects['task'] = 'Task'; $lang->createObjects['testcase'] = 'Case'; $lang->createObjects['execution'] = $lang->execution->common; diff --git a/module/common/lang/fr.php b/module/common/lang/fr.php index 9a3446dae2..3fd40d42b8 100644 --- a/module/common/lang/fr.php +++ b/module/common/lang/fr.php @@ -339,7 +339,7 @@ $lang->searchObjects['caselib'] = 'Case Library'; $lang->searchObjects['testreport'] = 'CR de Test'; $lang->searchObjects['program'] = 'Program'; $lang->searchObjects['project'] = $lang->projectCommon; -$lang->searchObjects['execution'] = $lang->executionCommon; +$lang->searchObjects['execution'] = $lang->execution->common; $lang->searchObjects['user'] = 'User'; $lang->searchTips = ''; @@ -363,7 +363,7 @@ $lang->visionList['lite'] = 'Operation Management Interface'; $lang->createObjects['todo'] = 'Todo'; $lang->createObjects['effort'] = 'Effort'; $lang->createObjects['bug'] = 'Bug'; -$lang->createObjects['story'] = 'Story'; +$lang->createObjects['story'] = $lang->SRCommon; $lang->createObjects['task'] = 'Task'; $lang->createObjects['testcase'] = 'Case'; $lang->createObjects['execution'] = $lang->execution->common; diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php index 31ab2b399f..bb01de11f0 100644 --- a/module/common/lang/zh-cn.php +++ b/module/common/lang/zh-cn.php @@ -339,7 +339,7 @@ $lang->searchObjects['caselib'] = '用例库'; $lang->searchObjects['testreport'] = '测试报告'; $lang->searchObjects['program'] = '项目集'; $lang->searchObjects['project'] = $lang->projectCommon; -$lang->searchObjects['execution'] = $lang->executionCommon; +$lang->searchObjects['execution'] = $lang->execution->common; $lang->searchObjects['user'] = '用户'; $lang->searchTips = '编号(ctrl+g)'; @@ -363,10 +363,10 @@ $lang->visionList['lite'] = '运营管理界面'; $lang->createObjects['todo'] = '待办'; $lang->createObjects['effort'] = '日志'; $lang->createObjects['bug'] = 'Bug'; -$lang->createObjects['story'] = '需求'; +$lang->createObjects['story'] = $lang->SRCommon; $lang->createObjects['task'] = '任务'; $lang->createObjects['testcase'] = '用例'; -$lang->createObjects['execution'] = '执行'; +$lang->createObjects['execution'] = $lang->execution->common; $lang->createObjects['project'] = $lang->projectCommon; $lang->createObjects['product'] = $lang->productCommon; $lang->createObjects['program'] = '项目集'; diff --git a/module/common/model.php b/module/common/model.php index 0d9ffa989f..3bf311ce61 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -912,7 +912,7 @@ class commonModel extends model $btnTitle = isset($lang->db->custom['common']['mainNav'][$tab]) ? $lang->db->custom['common']['mainNav'][$tab] : $lang->$tab->common; $commonKey = $tab . 'Common'; - if(isset($lang->$commonKey)) $btnTitle = $lang->$commonKey; + if(isset($lang->$commonKey) and $tab != 'execution') $btnTitle = $lang->$commonKey; $link = helper::createLink($currentModule, $currentMethod); $className = $tab == 'devops' ? 'btn num' : 'btn'; diff --git a/module/dev/model.php b/module/dev/model.php index 0a6d869234..cf4c7cd2af 100644 --- a/module/dev/model.php +++ b/module/dev/model.php @@ -820,6 +820,16 @@ class devModel extends model if(!in_array($type, $this->config->dev->navTypes)) return $menuTree; $mainNav = $type == 'second' ? $this->lang->mainNav : array(); + if($this->config->vision != 'open' and $type == 'second') + { + $flowNav = $this->dao->select('module')->from(TABLE_WORKFLOW) + ->where('buildin')->eq(0) + ->andWhere('vision')->eq($this->config->vision) + ->andWhere('navigator')->in('primary,secondary') + ->fetchPairs(); + foreach($flowNav as $nav) unset($mainNav->$nav); + } + if($type != 'second') { /* Set main nav list. */ diff --git a/module/execution/model.php b/module/execution/model.php index 2b0bab014f..53d16f4f74 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -59,7 +59,7 @@ class executionModel extends model */ public function getExecutionFeatures($execution) { - $features = array('story' => true, 'task' => true, 'qa' => true, 'devops' => true, 'burn' => true, 'build' => true, 'other' => true); + $features = array('story' => true, 'task' => true, 'qa' => true, 'devops' => true, 'burn' => true, 'build' => true, 'other' => true, 'plan' => true); /* Unset story, bug, build and testtask if type is ops. */ if($execution->lifetime == 'ops') @@ -81,10 +81,16 @@ class executionModel extends model if(in_array($execution->attribute, array('request', 'review'))) { $features['story'] = false; + $features['plan'] = false; } } } + if(isset($execution->projectInfo) and in_array($execution->projectInfo->model, array('waterfall', 'kanban', 'waterfallplus')) and empty($execution->projectInfo->hasProduct)) + { + $features['plan'] = false; + } + return $features; } diff --git a/module/execution/view/create.html.php b/module/execution/view/create.html.php index 4db3b363ef..6e9c1acd9a 100644 --- a/module/execution/view/create.html.php +++ b/module/execution/view/create.html.php @@ -190,7 +190,7 @@ - hasProduct) and strpos($project->model, 'waterfall') === false):?> + hasProduct) and !in_array($project->model, array('waterfall', 'kanban', 'waterfallplus'))):?> execution->linkPlan;?> diff --git a/module/execution/view/view.html.php b/module/execution/view/view.html.php index a680f2da7d..ab8c80b5f7 100644 --- a/module/execution/view/view.html.php +++ b/module/execution/view/view.html.php @@ -345,7 +345,7 @@ - projectInfo->model, 'waterfall') !== false and (empty($execution->projectInfo->hasProduct) or in_array($execution->attribute, array('request', 'review'))))):?> +
execution->linkPlan;?>
diff --git a/module/product/lang/de.php b/module/product/lang/de.php index a463d021f0..91498a9b87 100644 --- a/module/product/lang/de.php +++ b/module/product/lang/de.php @@ -62,7 +62,7 @@ $lang->product->doc = 'Dok'; $lang->product->project = $lang->executionCommon . 'Liste'; $lang->product->build = 'Build'; $lang->product->moreProduct = "More {$lang->productCommon}"; -$lang->product->projectInfo = "{$lang->projectCommon}s that are linked to this {$lang->productCommon} are listed below."; +$lang->product->projectInfo = "My {$lang->projectCommon}s that are linked to this {$lang->productCommon} are listed below."; $lang->product->progress = "Progress"; $lang->product->currentExecution = "Aktuelle Execution"; diff --git a/module/product/lang/en.php b/module/product/lang/en.php index 7478d9deb5..fff88b394d 100644 --- a/module/product/lang/en.php +++ b/module/product/lang/en.php @@ -62,7 +62,7 @@ $lang->product->doc = "{$lang->productCommon} Documents"; $lang->product->project = $lang->executionCommon . ' List'; $lang->product->build = 'Build List'; $lang->product->moreProduct = "More {$lang->productCommon}"; -$lang->product->projectInfo = "{$lang->projectCommon}s that are linked to this {$lang->productCommon} are listed below."; +$lang->product->projectInfo = "My {$lang->projectCommon}s that are linked to this {$lang->productCommon} are listed below."; $lang->product->progress = "Progress"; $lang->product->currentExecution = "Current Execution"; diff --git a/module/product/lang/fr.php b/module/product/lang/fr.php index 6d27f88dd8..a78f5ede17 100644 --- a/module/product/lang/fr.php +++ b/module/product/lang/fr.php @@ -62,7 +62,7 @@ $lang->product->doc = "Documents {$lang->productCommon}"; $lang->product->project = ' Liste ' . $lang->executionCommon; $lang->product->build = 'Liste Builds'; $lang->product->moreProduct = "More {$lang->productCommon}"; -$lang->product->projectInfo = "Les {$lang->projectCommon}s qui sont associés à ce {$lang->productCommon} sont listés ci-dessous."; +$lang->product->projectInfo = "My {$lang->projectCommon}s that are linked to this {$lang->productCommon} are listed below."; $lang->product->progress = "Progress"; $lang->product->currentExecution = "Current Execution"; diff --git a/module/product/lang/zh-cn.php b/module/product/lang/zh-cn.php index 829bd67f93..d5edd03248 100644 --- a/module/product/lang/zh-cn.php +++ b/module/product/lang/zh-cn.php @@ -62,7 +62,7 @@ $lang->product->doc = '文档列表'; $lang->product->project = $lang->executionCommon . '列表'; $lang->product->build = '版本列表'; $lang->product->moreProduct = "更多{$lang->productCommon}"; -$lang->product->projectInfo = "所有与此{$lang->productCommon}关联的{$lang->projectCommon}"; +$lang->product->projectInfo = "所有与此{$lang->productCommon}关联的我参与的{$lang->projectCommon}"; $lang->product->progress = "{$lang->productCommon}完成度"; $lang->product->currentExecution = "当前执行"; diff --git a/module/product/view/create.html.php b/module/product/view/create.html.php index 5e67b93b56..2b79d4c267 100644 --- a/module/product/view/create.html.php +++ b/module/product/view/create.html.php @@ -21,7 +21,7 @@

product->create;?>

-
+ config->systemMode == 'ALM'):?> diff --git a/module/search/lang/de.php b/module/search/lang/de.php index aee53b81b1..bc55ae01a2 100644 --- a/module/search/lang/de.php +++ b/module/search/lang/de.php @@ -94,14 +94,14 @@ $lang->search->modules['testreport'] = 'Testing Report'; $lang->search->modules['productplan'] = 'Plan'; $lang->search->modules['program'] = 'Program'; $lang->search->modules['project'] = $lang->projectCommon; -$lang->search->modules['execution'] = $lang->executionCommon; +$lang->search->modules['execution'] = $lang->execution->common; $lang->search->modules['story'] = $lang->SRCommon; $lang->search->modules['requirement'] = $lang->URCommon; $lang->search->objectTypeList['story'] = $lang->SRCommon; $lang->search->objectTypeList['requirement'] = $lang->URCommon; $lang->search->objectTypeList['stage'] = 'stage'; -$lang->search->objectTypeList['sprint'] = $lang->executionCommon; +$lang->search->objectTypeList['sprint'] = $lang->execution->common; $lang->search->objectTypeList['kanban'] = 'kanban'; $lang->search->objectTypeList['commonIssue'] = 'Issue'; $lang->search->objectTypeList['stakeholderIssue'] = 'Stakeholder Issue'; diff --git a/module/search/lang/en.php b/module/search/lang/en.php index ea798d7d55..dc173518b0 100644 --- a/module/search/lang/en.php +++ b/module/search/lang/en.php @@ -94,14 +94,14 @@ $lang->search->modules['testreport'] = 'Testing Report'; $lang->search->modules['productplan'] = 'Plan'; $lang->search->modules['program'] = 'Program'; $lang->search->modules['project'] = $lang->projectCommon; -$lang->search->modules['execution'] = $lang->executionCommon; +$lang->search->modules['execution'] = $lang->execution->common; $lang->search->modules['story'] = $lang->SRCommon; $lang->search->modules['requirement'] = $lang->URCommon; $lang->search->objectTypeList['story'] = $lang->SRCommon; $lang->search->objectTypeList['requirement'] = $lang->URCommon; $lang->search->objectTypeList['stage'] = 'stage'; -$lang->search->objectTypeList['sprint'] = $lang->executionCommon; +$lang->search->objectTypeList['sprint'] = $lang->execution->common; $lang->search->objectTypeList['kanban'] = 'kanban'; $lang->search->objectTypeList['commonIssue'] = 'Issue'; $lang->search->objectTypeList['stakeholderIssue'] = 'Stakeholder Issue'; diff --git a/module/search/lang/fr.php b/module/search/lang/fr.php index b9bf8f9541..fb0b3d8249 100644 --- a/module/search/lang/fr.php +++ b/module/search/lang/fr.php @@ -94,14 +94,14 @@ $lang->search->modules['testreport'] = 'Testing Report'; $lang->search->modules['productplan'] = 'Plan'; $lang->search->modules['program'] = 'Program'; $lang->search->modules['project'] = $lang->projectCommon; -$lang->search->modules['execution'] = $lang->executionCommon; +$lang->search->modules['execution'] = $lang->execution->common; $lang->search->modules['story'] = $lang->SRCommon; $lang->search->modules['requirement'] = $lang->URCommon; $lang->search->objectTypeList['story'] = $lang->SRCommon; $lang->search->objectTypeList['requirement'] = $lang->URCommon; $lang->search->objectTypeList['stage'] = 'stage'; -$lang->search->objectTypeList['sprint'] = $lang->executionCommon; +$lang->search->objectTypeList['sprint'] = $lang->execution->common; $lang->search->objectTypeList['kanban'] = 'kanban'; $lang->search->objectTypeList['commonIssue'] = 'Issue'; $lang->search->objectTypeList['stakeholderIssue'] = 'Stakeholder Issue'; diff --git a/module/search/lang/zh-cn.php b/module/search/lang/zh-cn.php index 8fc127152c..993e130fea 100644 --- a/module/search/lang/zh-cn.php +++ b/module/search/lang/zh-cn.php @@ -94,14 +94,14 @@ $lang->search->modules['testreport'] = '测试报告'; $lang->search->modules['productplan'] = '计划'; $lang->search->modules['program'] = '项目集'; $lang->search->modules['project'] = $lang->projectCommon; -$lang->search->modules['execution'] = $lang->executionCommon; +$lang->search->modules['execution'] = $lang->execution->common; $lang->search->modules['story'] = $lang->SRCommon; $lang->search->modules['requirement'] = $lang->URCommon; $lang->search->objectTypeList['story'] = $lang->SRCommon; $lang->search->objectTypeList['requirement'] = $lang->URCommon; $lang->search->objectTypeList['stage'] = '阶段'; -$lang->search->objectTypeList['sprint'] = $lang->executionCommon; +$lang->search->objectTypeList['sprint'] = $lang->execution->common; $lang->search->objectTypeList['kanban'] = '看板'; $lang->search->objectTypeList['commonIssue'] = '问题'; $lang->search->objectTypeList['stakeholderIssue'] = '干系人问题'; diff --git a/module/story/view/linkstories.html.php b/module/story/view/linkstories.html.php index d289b9e8b5..c61df8adf3 100644 --- a/module/story/view/linkstories.html.php +++ b/module/story/view/linkstories.html.php @@ -59,7 +59,7 @@ shadow)):?> - + diff --git a/module/testcase/view/caseheader.html.php b/module/testcase/view/caseheader.html.php index 49b5fea2d3..413c957646 100644 --- a/module/testcase/view/caseheader.html.php +++ b/module/testcase/view/caseheader.html.php @@ -21,7 +21,7 @@ #byTypeTab li.split{border-top: 1px solid #eee;}
createLink('product', 'browse', "productID=$story2Link->product&branch=$story2Link->branch"), $products[$story2Link->product], '_blank');?> title);?>title;?> processStatus('story', $story2Link);?> openedBy);?> assignedTo);?>