* Fix bug #14776.
This commit is contained in:
@@ -1823,6 +1823,8 @@ class bugModel extends model
|
||||
if(!empty($run->task)) $testtask = $this->loadModel('testtask')->getById($run->task);
|
||||
$executionID = isset($testtask->execution) ? $testtask->execution : 0;
|
||||
|
||||
if(!$executionID and $this->app->tab == 'execution') $executionID = $this->session->execution;
|
||||
|
||||
return array('title' => $title, 'steps' => $bugSteps, 'storyID' => $run->case->story, 'moduleID' => $run->case->module, 'version' => $run->case->version, 'executionID' => $executionID);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,8 @@
|
||||
<td class='w-60px'><?php if(!empty($result->files)) echo html::a("#caseResult{$result->id}", $lang->files . $fileCount, '', "data-toggle='modal' data-type='iframe'")?></td>
|
||||
<td class='w-50px text-center'><i class='collapse-handle icon-angle-down text-muted'></i></td>
|
||||
</tr>
|
||||
<?php $executionParam = ($this->app->tab == 'execution' and isset($testtask)) ? "executionID=$testtask->execution" : "";?>
|
||||
<?php $executionParam = $this->app->tab == 'execution' ? "executionID={$this->session->execution}" : "";?>
|
||||
<?php $executionParam = isset($testtask) ? "executionID=$testtask->execution" : $executionParam;?>
|
||||
<?php $params = isset($testtask) ? ",testtask=$testtask->id" : "";?>
|
||||
<?php $params = $params . ",buildID=" . (isset($testtask->build) ? $testtask->build : $result->build);?>
|
||||
<?php if($executionParam) $params .= ',' . $executionParam;?>
|
||||
|
||||
Reference in New Issue
Block a user