This commit is contained in:
wangchunsheng
2010-09-13 12:51:11 +00:00
parent 582fd8b44b
commit 4e165e290d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -87,11 +87,11 @@ class testtaskModel extends model
public function linkCase($taskID)
{
if($this->post->cases == false) return;
foreach($this->post->cases as $key => $caseID)
foreach($this->post->cases as $caseID)
{
$row->task = $taskID;
$row->case = $caseID;
$row->version = $this->post->versions[$key];
$row->version = $this->post->versions[$caseID];
$row->assignedTo = '';
$row->status = 'wait';
$this->dao->replace(TABLE_TESTRUN)->data($row)->exec();
+1 -1
View File
@@ -72,7 +72,7 @@ function checkall(checker)
<td><?php echo $lang->testcase->statusList[$case->status];?></td>
<td class='a-left'><nobr>
<input type='checkbox' name='cases[]' value='<?php echo $case->id;?>' />
<?php echo html::select('versions[]', array_combine(range($case->version, 1), range($case->version, 1)), '', 'style=width:50px');?></nobr>
<?php echo html::select("versions[$case->id]", array_combine(range($case->version, 1), range($case->version, 1)), '', 'style=width:50px');?></nobr>
</td>
</tr>
</tbody>