From 6c98c6cb82e7fb9b91d3f0a62d782d09ec415c00 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 4 May 2017 15:38:43 +0800 Subject: [PATCH] * finish task #3009. --- module/testreport/model.php | 9 +++ module/testreport/view/browse.html.php | 92 +++++++++++++------------- 2 files changed, 54 insertions(+), 47 deletions(-) diff --git a/module/testreport/model.php b/module/testreport/model.php index cc628c7b53..4e724f8d6b 100644 --- a/module/testreport/model.php +++ b/module/testreport/model.php @@ -24,6 +24,15 @@ class testreportModel extends model { $this->loadModel('product')->setMenu($products, $productID, $branch); $selectHtml = $this->product->select($products, $productID, 'testreport', 'browse', '', $branch); + + /* Remove branch. */ + if(strpos($selectHtml, 'currentBranch') !== false) + { + $selectHtml = substr($selectHtml, 0, strpos($selectHtml, 'currentBranch')); + $selectHtml = substr($selectHtml, 0, strrpos($selectHtml, '<')); + if(strpos($selectHtml, '') !== false) $selectHtml = substr($selectHtml, 0, strrpos($selectHtml, '')); + } + foreach($this->lang->testtask->menu as $key => $value) { $replace = ($key == 'product') ? $selectHtml : $productID; diff --git a/module/testreport/view/browse.html.php b/module/testreport/view/browse.html.php index 22cb8f87a4..e3c167ac77 100644 --- a/module/testreport/view/browse.html.php +++ b/module/testreport/view/browse.html.php @@ -11,53 +11,51 @@ */ ?> -
-
-
- testreport->browse;?> -
+
+
+ testreport->browse;?>
- - recTotal}&recPerPage={$pager->recPerPage}";?> - - - - - - - - - - - - - - - - - - - - project . $projects[$report->project];?> - - tasks) as $taskID) $taskName .= '#' . $taskID . $tasks[$taskID] . ' '; - ?> - - - - - - - - - -
idAB);?> testreport->title);?> openedByAB);?>testreport->createdDate);?>testreport->project);?>testreport->testtask;?> actions;?>
id?>id&from=$objectType"), $report->title)?>createdBy);?>createdDate, 2);?> - id", '', 'list'); - common::printIcon('testreport', 'delete', "id=$report->id", '', 'list', 'remove', 'hiddenwin'); - ?> -
show();?>
testreport->noReport;?>
+ + recTotal}&recPerPage={$pager->recPerPage}";?> + + + + + + + + + + + + + + + + + + + + project . $projects[$report->project];?> + + tasks) as $taskID) $taskName .= '#' . $taskID . $tasks[$taskID] . ' '; + ?> + + + + + + + + + +
idAB);?> testreport->title);?> openedByAB);?>testreport->createdDate);?>testreport->project);?>testreport->testtask;?> actions;?>
id?>id&from=$objectType"), $report->title)?>createdBy);?>createdDate, 2);?> + id", '', 'list'); + common::printIcon('testreport', 'delete', "id=$report->id", '', 'list', 'remove', 'hiddenwin'); + ?> +
show();?>
testreport->noReport;?>