Merge branch 'master' of https://github.com/easysoft/zentaopms
This commit is contained in:
@@ -50,6 +50,14 @@ $('#end').on('change', function()
|
||||
$("input:radio[name='delta']").attr("checked", false);
|
||||
});
|
||||
|
||||
$('form').submit(function()
|
||||
{
|
||||
$('#submit').click(function()
|
||||
{
|
||||
return false;
|
||||
});
|
||||
})
|
||||
|
||||
$('#future').on('change', function()
|
||||
{
|
||||
if($(this).prop('checked'))
|
||||
|
||||
@@ -1112,7 +1112,7 @@ class testcase extends control
|
||||
$case->stepExpect = '';
|
||||
$case->real = '';
|
||||
$result = isset($results[$case->id]) ? $results[$case->id] : array();
|
||||
if($case->lastRunResult == 'fail' and !isset($relatedSteps[$case->id]) and !empty($result)) $case->real = $result[0]['real'];
|
||||
$case->real = $result[0]['real'];
|
||||
if(isset($relatedSteps[$case->id]))
|
||||
{
|
||||
$i = $childId = 0;
|
||||
@@ -1133,7 +1133,7 @@ class testcase extends control
|
||||
$sign = (in_array($this->post->fileType, array('html', 'xml'))) ? '<br />' : "\n";
|
||||
$case->stepDesc .= $stepId . ". " . $step->desc . $sign;
|
||||
$case->stepExpect .= $stepId . ". " . $step->expect . $sign;
|
||||
if($case->lastRunResult == 'fail') $case->real .= $stepId . ". " . (isset($result[$step->id]) ? $result[$step->id]['real'] : '') . $sign;
|
||||
$case->real .= $stepId . ". " . (isset($result[$step->id]) ? $result[$step->id]['real'] : '') . $sign;
|
||||
$childId ++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user