* adjust for create bug from case.

This commit is contained in:
wangyidong
2017-03-21 16:53:55 +08:00
parent 323308d105
commit 7de75f5fc1
6 changed files with 38 additions and 24 deletions
+1 -1
View File
@@ -49,7 +49,7 @@
</tr>
<tr class='result-detail hide' id='tr-detail_<?php echo $trCount++; ?>'>
<td colspan='7' class='pd-0'>
<form action='<?php echo $this->createLink('bug', 'create', "product=$case->product&branch=$case->branch&extras=caseID=$case->id,version=$case->version,resultID=$result->id,runID=$runID")?>' target='_blank' method='post'>
<form action='<?php echo $this->createLink('bug', 'create', "product=$case->product&branch=$case->branch&extras=caseID=$case->id,version=$case->version,resultID=$result->id,runID=$runID" . (isset($testtaskID) ? ",testtask=$testtaskID" : ''))?>' target='_blank' method='post'>
<table class='table table-condensed borderless mg-0 resultSteps'>
<thead>
<tr>
+1 -1
View File
@@ -42,7 +42,7 @@
$step->id = 0;
$step->parent = 0;
$step->case = $run->case->id;
$step->type = 'item';
$step->type = 'step';
$step->desc = '';
$step->expect = '';
$run->case->steps[] = $step;