* finish task #2327.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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'>
|
||||
|
||||
Reference in New Issue
Block a user