icons['product']);?>
diff --git a/module/testtask/control.php b/module/testtask/control.php
index 34a6c65b64..ba5e83d9c9 100644
--- a/module/testtask/control.php
+++ b/module/testtask/control.php
@@ -205,7 +205,7 @@ class testtask extends control
* @access public
* @return void
*/
- public function cases($taskID, $browseType = 'byModule', $param = 0, $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
+ public function cases($taskID, $browseType = 'all', $param = 0, $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
{
/* Save the session. */
$this->app->loadLang('testcase');
@@ -268,7 +268,7 @@ class testtask extends control
$caseQuery = $this->loadModel('search')->replaceDynamic($caseQuery);
$caseQuery = preg_replace('/`(\w+)`/', 't2.`$1`', $caseQuery);
- $this->view->runs = $this->dao->select('t2.*,t1.*')->from(TABLE_TESTRUN)->alias('t1')
+ $this->view->runs = $this->dao->select('t2.*,t1.*, t2.version as caseVersion')->from(TABLE_TESTRUN)->alias('t1')
->leftJoin(TABLE_CASE)->alias('t2')->on('t1.case = t2.id')
->where($caseQuery)
->andWhere('t1.task')->eq($taskID)
diff --git a/module/testtask/js/cases.js b/module/testtask/js/cases.js
index d68454aa97..dcf9cc4af1 100644
--- a/module/testtask/js/cases.js
+++ b/module/testtask/js/cases.js
@@ -1,19 +1,3 @@
-function browseByModule(active)
-{
- $('#bymoduleTab').addClass('active');
- $('#' + active + 'Tab').removeClass('active');
- $('#querybox').addClass('hidden');
-}
-
-/* Swtich to search module. */
-function browseBySearch(active)
-{
- $('#querybox').removeClass('hidden');
- $('#' + active + 'Tab').removeClass('active');
- $('#bysearchTab').addClass('active');
- $('#bymoduleTab').removeClass('active');
-}
-
$(document).ready(function()
{
setModal4List('runCase', 'caseList', function(){$(".iframe").modalTrigger({width:1024, type:'iframe'});}, 1024);
@@ -21,9 +5,3 @@ $(document).ready(function()
$('#module' + moduleID).addClass('active');
if(browseType == 'bysearch') ajaxGetSearchForm();
});
-
-$(document).ready(function()
-{
- $('#' + browseType + 'Tab').addClass('active');
- $('#module' + moduleID).addClass('active');
-});
diff --git a/module/testtask/view/cases.html.php b/module/testtask/view/cases.html.php
index f9ebd9f488..3770a97c5a 100644
--- a/module/testtask/view/cases.html.php
+++ b/module/testtask/view/cases.html.php
@@ -22,10 +22,9 @@ var moduleID = '';
icons['usecase']);?>
@@ -42,7 +41,7 @@ var moduleID = '';
'>
-
+
icons['product']);?>
diff --git a/www/theme/default/style.css b/www/theme/default/style.css
index a9ff529000..e4a9a2806b 100644
--- a/www/theme/default/style.css
+++ b/www/theme/default/style.css
@@ -432,6 +432,7 @@ body {font-size: 13px; color:#141414;padding-bottom: 40px;}
.sub-featurebar > .nav > li.active > a {color: #333; font-weight: bold;}
#featurebar.with-sub > .nav > li.active > a {border: 1px solid #ddd; position: relative; border-bottom: none; background: #fff; padding: 2px 15px 5px}
+.treeview > li > a.active { font-weight:bold;}
/* Title bar. */
#titlebar {margin: -20px -20px 20px; background: #F8FAFE; border-bottom: 1px solid #e5e5e5; min-height: 46px; min-height: 20px\0; padding: 13px 20px; vertical-align: bottom; position: relative;}