* testtask: remove unnecessary variables assigned to browse page.

This commit is contained in:
liugang
2023-09-15 09:51:15 +08:00
parent b6fe9ae289
commit 770fcae19b
2 changed files with 14 additions and 17 deletions
+12 -15
View File
@@ -117,21 +117,18 @@ class testtask extends control
if($testtask->build == 'trunk' || empty($testtask->buildName)) $testtask->buildName = $this->lang->trunk;
}
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testtask->common;
$this->view->productID = $productID;
$this->view->product = $product;
$this->view->branch = $branch;
$this->view->tasks = $testtasks;
$this->view->users = $this->loadModel('user')->getPairs('noclosed|noletter');
$this->view->pager = $pager;
$this->view->beginTime = $beginTime;
$this->view->endTime = $endTime;
$this->view->type = $type;
$this->view->orderBy = $orderBy;
$this->view->waitCount = $waitCount;
$this->view->testingCount = $testingCount;
$this->view->blockedCount = $blockedCount;
$this->view->doneCount = $doneCount;
$this->view->title = $product->name . $this->lang->colon . $this->lang->testtask->common;
$this->view->users = $this->loadModel('user')->getPairs('noclosed|noletter');
$this->view->allSummary = sprintf($this->lang->testtask->allSummary, count($testtasks), $waitCount, $testingCount, $blockedCount, $doneCount);
$this->view->pageSummary = sprintf($this->lang->testtask->pageSummary, count($testtasks));
$this->view->tasks = $testtasks;
$this->view->product = $product;
$this->view->branch = $branch;
$this->view->type = $type;
$this->view->orderBy = $orderBy;
$this->view->pager = $pager;
$this->view->beginTime = $beginTime;
$this->view->endTime = $endTime;
$this->display();
}