diff --git a/module/block/control.php b/module/block/control.php index 37398b8471..fdcedf54f7 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -656,7 +656,18 @@ class block extends control $num = isset($this->params->num) ? (int)$this->params->num : 0; $type = isset($this->params->type) ? $this->params->type : ''; $pager = pager::init(0, $num , 1); - $this->view->productStats = $this->loadModel('product')->getStats('order_desc', $this->viewType != 'json' ? $pager : '', $type); + + $productStats = $this->loadModel('product')->getStats('order_desc', $this->viewType != 'json' ? $pager : '', $type); + $productIdList = array(); + foreach($productStats as $product) $productIdList[] = $product->id; + + $this->view->projects = $this->dao->select('t1.product,t2.name')->from(TABLE_PROJECTPRODUCT)->alias('t1') + ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project=t2.id') + ->where('t1.product')->in($productIdList) + ->andWhere('t2.deleted')->eq(0) + ->orderBy('t1.project') + ->fetchPairs('product', 'name'); + $this->view->productStats = $productStats; } /** diff --git a/module/block/view/bugblock.html.php b/module/block/view/bugblock.html.php index 74474d859d..bd0db068a6 100644 --- a/module/block/view/bugblock.html.php +++ b/module/block/view/bugblock.html.php @@ -10,15 +10,18 @@ * @link http://www.ranzhi.org */ ?> +grid >= 6;?>
| idAB?> | -priAB?> | -bug->title;?> | -bug->severityAB?> | -bug->statusAB;?> | -|
|---|---|---|---|---|---|
| idAB?> | + +priAB?> | +bug->title;?> | +bug->severityAB?> | +'>bug->statusAB;?> | +|
| id;?> | +bug->priList, $bug->pri, $bug->pri)?> | title?> | bug->severityList, $bug->severity, $bug->severity)?> | -bug->statusList, $bug->status, $bug->status)?> | ++ + + bug->statusList, $bug->status);?> + + |
| idAB?> | +priAB?> | case->title;?> | +testtask->lastRunTime;?> | testtask->lastRunResult;?> | +statusAB;?> | |
|---|---|---|---|---|---|---|
| id;?> | +case->priList, $case->pri, $case->pri)?> | title?> | +lastRunDate)) echo date(DT_MONTHTIME1, strtotime($case->lastRunDate));?> | lastRunResult) echo $lang->testcase->resultList[$case->lastRunResult];?> | -testcase->statusList[$case->status];?> | + ++ + + testcase->statusList, $case->status);?> + + |
| product->name;?> | -story->statusList['active'];?> | +story->statusList['changed'];?> | -story->statusList['draft'];?> | + +product->plans;?> | -product->releases;?> | -product->bugs;?> | -bug->unResolved;?> | + +product->releases;?> | + +product->currentProject;?> | +story->statusList['active'];?> | + + +product->bugs;?> | + +bug->unResolved;?> |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| name?> | -stories['active']?> | +stories['changed']?> | -stories['draft']?> | + +plans?> | +releases?> | + +id, '');?> | +stories['active']?> | + +bugs?> | +unResolved?> |
| idAB?> | +priAB?> | story->title;?> | +story->estimateAB;?> | statusAB;?> | -story->stageAB;?> | + +story->stageAB;?> | |
|---|---|---|---|---|---|---|---|
| id;?> | +story->priList, $story->pri, $story->pri)?> | title?> | +estimate?> | -story->statusList, $story->status, $story->status);?> - | story->stageList, $story->stage, $story->stage);?> + | + + + story->statusList, $story->status);?> + + | + +story->stageList, $story->stage, $story->stage);?> |
| idAB?> | +priAB?> | task->name;?> | task->estimateAB;?> | +task->deadline;?> | +statusAB;?> | |
|---|---|---|---|---|---|---|
| id;?> | +task->priList, $task->pri, $task->pri)?> | name?> | estimate?> | +'>deadline, 0, 4) > 0) echo $task->deadline;?> | -task->statusList, $task->status, $task->status);?> + + | + + + task->statusList, $task->status);?> + + |