* finish task #2327.

This commit is contained in:
wangyidong
2015-10-15 10:08:22 +08:00
parent 2b09f778dd
commit c03bce590c
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ class testtask extends control
->andWhere('t2.deleted')->eq(0)
->fetchPairs('id');
$productID = key($products);
$productID = $productID ? $productID : key($products);
$projects = $this->dao->select('id, name')->from(TABLE_PROJECT)->where('id')->eq($projectID)->andWhere('deleted')->eq(0)->fetchPairs('id');
$builds = $this->dao->select('id, name')->from(TABLE_BUILD)->where('id')->eq($build)->andWhere('deleted')->eq(0)->fetchPairs('id');
}
@@ -123,7 +123,7 @@ class testtask extends control
->andWhere('t2.deleted')->eq(0)
->fetchPairs('id');
$productID = key($products);
$productID = $productID ? $productID : key($products);
$projects = $this->dao->select('id, name')->from(TABLE_PROJECT)->where('id')->eq($projectID)->andWhere('deleted')->eq(0)->fetchPairs('id');
$builds = $this->dao->select('id, name')->from(TABLE_BUILD)->where('project')->eq($projectID)->andWhere('deleted')->eq(0)->fetchPairs('id');
$builds = array('trunk' => 'Trunk') + $builds;
+1 -1
View File
@@ -26,7 +26,7 @@
<?php if(isset($projectID)):?>
<tr>
<th class='w-90px'><?php echo $lang->testtask->product;?></th>
<td class='w-p25-f'><?php echo html::select('product', $products, '', "class='form-control chosen'");?></td><td></td>
<td class='w-p25-f'><?php echo html::select('product', $products, $productID, "class='form-control chosen'");?></td><td></td>
</tr>
<?php else:?>
<tr class='hide'>