diff --git a/module/common/model.php b/module/common/model.php index ef7e6cc6d2..09385c84ad 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -746,7 +746,6 @@ class commonModel extends model { $class = $key == $searchObject ? "class='selected'" : ''; if($key == 'program') $key = 'program-product'; - if($key == 'project') $key = 'project-index'; if($key == 'deploystep') $key = 'deploy-viewstep'; echo "
  • {$value}
  • "; diff --git a/module/index/js/index.js b/module/index/js/index.js index e116b0a209..2edf4b424a 100644 --- a/module/index/js/index.js +++ b/module/index/js/index.js @@ -678,9 +678,8 @@ function changeSearchObject() if(searchObjectList.indexOf(',' + searchType + ',') == -1) var searchType = 'bug'; - if(searchType == 'program') var searchType = 'program-pgmproduct'; - if(searchType == 'project') var searchType = 'program-index'; - if(searchType == 'execution') var searchType = 'project-view'; + if(searchType == 'program') var searchType = 'program-product'; + if(searchType == 'deploystep') var searchType = 'deploy-viewstep'; $("#searchType").val(searchType); return searchType; diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index b703179e6f..1e31d8b261 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -155,6 +155,7 @@ $isProjectStory = $this->app->rawModule == 'projectstory'; } ?> +
  • > app->rawModule == 'projectstory'; echo html::a($batchLink, $lang->story->batchCreate, '', "data-group='$openApp'"); ?>
  • + @@ -180,7 +182,7 @@ $isProjectStory = $this->app->rawModule == 'projectstory'; echo ''; echo "'; } ?> diff --git a/module/story/control.php b/module/story/control.php index 6dbedb4d3c..deac3d8078 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -293,7 +293,7 @@ class story extends control $this->view->position[] = html::a($this->createLink('product', 'browse', "product=$productID&branch=$branch"), $product->name); $this->view->position[] = $this->lang->story->common; $this->view->position[] = $this->lang->story->create; - $this->view->products = $products; + $this->view->products = array('' => '') + $products; $this->view->users = $users; $this->view->moduleID = $moduleID ? $moduleID : (int)$this->cookie->lastStoryModule; $this->view->moduleOptionMenu = $moduleOptionMenu; diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php index 9ee2c8b719..82b24f73f3 100644 --- a/module/story/view/create.html.php +++ b/module/story/view/create.html.php @@ -39,7 +39,7 @@ type != 'normal'):?>
    - + type != 'normal'):?> diff --git a/module/testcase/control.php b/module/testcase/control.php index 29bf802202..e6d33c380a 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -522,8 +522,8 @@ class testcase extends control if(!$case) die(js::error($this->lang->notFound) . js::locate('back')); if($case->auto == 'unit') { - $this->lang->testcase->subMenu->testcase->feature['alias'] = ''; - $this->lang->testcase->subMenu->testcase->unit['alias'] = 'view'; + $this->lang->testcase->subMenu->testcase->feature['alias'] = ''; + $this->lang->testcase->subMenu->testcase->unit['alias'] = 'view'; $this->lang->testcase->subMenu->testcase->unit['subModule'] = 'testcase'; } @@ -637,6 +637,14 @@ class testcase extends control } $case = $this->testcase->getById($caseID); + if(!$case) die(js::error($this->lang->notFound) . js::locate('back')); + if($case->auto == 'unit') + { + $this->lang->testcase->subMenu->testcase->feature['alias'] = ''; + $this->lang->testcase->subMenu->testcase->unit['alias'] = 'view'; + $this->lang->testcase->subMenu->testcase->unit['subModule'] = 'testcase'; + } + if(empty($case->steps)) { $step = new stdclass(); diff --git a/module/testcase/view/edit.html.php b/module/testcase/view/edit.html.php index 28d44a52c2..a655c6253f 100644 --- a/module/testcase/view/edit.html.php +++ b/module/testcase/view/edit.html.php @@ -270,4 +270,11 @@
    + diff --git a/module/testcase/view/view.html.php b/module/testcase/view/view.html.php index 86379f11eb..8fa4c993b8 100644 --- a/module/testcase/view/view.html.php +++ b/module/testcase/view/view.html.php @@ -354,6 +354,7 @@ js::set('retrack', $lang->retrack); $(function() { $('#subNavbar [data-id=testcase]').addClass('active'); + $('#navbar [data-id=testcase]').addClass('active'); }) diff --git a/module/testtask/view/browseunits.html.php b/module/testtask/view/browseunits.html.php index 5ce1eab1ac..c778e1ac7b 100644 --- a/module/testtask/view/browseunits.html.php +++ b/module/testtask/view/browseunits.html.php @@ -67,8 +67,8 @@ failCount?> id", '', 'list', 'list-alt','','',true); - common::printIcon('testtask', 'edit', "taskID=$task->id", $task, 'list','','','',true); + common::printIcon('testtask', 'unitCases', "taskID=$task->id", '', 'list', 'list-alt', '', 'iframe', true, 'data-width="70%"'); + common::printIcon('testtask', 'edit', "taskID=$task->id", $task, 'list', '', '', 'iframe', true); if(common::hasPriv('testtask', 'delete', $task)) { $deleteURL = $this->createLink('testtask', 'delete', "taskID=$task->id&confirm=yes");