* code for task#2155.

This commit is contained in:
xia0ta0
2014-12-12 14:36:07 +08:00
parent 65dd7aada9
commit c34d2e4a3b
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -376,10 +376,15 @@ class testcase extends control
$position[] = $this->lang->testcase->common;
$position[] = $this->lang->testcase->batchCreate;
$story = $storyID ? $this->story->getByID($storyID) : '';
$storyList = $storyID ? array($storyID => $story->id . ':' . $story->title . '(' . $this->lang->story->pri . ':' .
$story->pri . ',' . $this->lang->story->estimate . ':' . $story->estimate . ')') : array();
$this->view->title = $title;
$this->view->position = $position;
$this->view->productID = $productID;
$this->view->story = $storyID ? $this->story->getByID($storyID) : '';
$this->view->story = $story;
$this->view->storyList = $storyList;
$this->view->productName = $this->products[$productID];
$this->view->moduleOptionMenu = $this->tree->getOptionMenu($productID, $viewType = 'case', $startModuleID = 0);
$this->view->currentModuleID = $currentModuleID;
+1 -1
View File
@@ -44,7 +44,7 @@
<td><?php echo $i+1;?></td>
<td class='text-left' style='overflow:visible'><?php echo html::select("module[$i]", $moduleOptionMenu, $currentModuleID, "class='form-control chosen'");?></td>
<td><?php echo html::select("type[$i]", $lang->testcase->typeList, $type, "class=form-control");?></td>
<td class='text-left' style='overflow:visible'><?php echo html::select("story[$i]", '', '', 'class="form-control chosen"');?></td>
<td class='text-left' style='overflow:visible'><?php echo html::select("story[$i]", $storyList, $story->id, 'class="form-control chosen"');?></td>
<td><?php echo html::input("title[$i]", '', "class='form-control'");?></td>
</tr>
<?php endfor;?>