Skip to content

Commit

Permalink
TICKET 7023: Test execution mode shows "File i Browse... " bar under …
Browse files Browse the repository at this point in the history
…every test step - unable to disable with $tlCfg->exec_cfg->steps_exec
  • Loading branch information
fmancardi committed Mar 24, 2015
1 parent a9595e3 commit d38ac13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gui/templates/testcases/inc_steps.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Author : eloff, 2010
{/if}

</tr>
{if $gui->allowStepAttachments}
{if $gui->allowStepAttachments && isset($add_exec_info) && $add_exec_info}
<tr>
<td colspan=6>
{include file="attachments_simple.inc.tpl" attach_id=$step_info.id}
Expand Down
8 changes: 5 additions & 3 deletions lib/functions/specview.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ function getFilteredLinkedVersions(&$dbHandler,&$argsObj, &$tplanMgr, &$tcaseMgr


// $opx = array('addExecInfo' => true, 'specViewFields' => true) + (array)$options;
$opx = array_merge( array('addExecInfo' => true, 'specViewFields' => true),
$opx = array_merge( array('addExecInfo' => true, 'specViewFields' => true,
'tlFeature' => 'none'),
(array)$options );

switch($options['tlFeature'])
Expand All @@ -368,11 +369,12 @@ function getFilteredLinkedVersions(&$dbHandler,&$argsObj, &$tplanMgr, &$tcaseMgr
break;
}

if(!is_null($argsObj->testcases_to_show))
if(isset($argsObj->testcases_to_show) && !is_null($argsObj->testcases_to_show))
{
$filters['tcase_id'] = $argsObj->testcases_to_show;
}
if($argsObj->platform_id > 0)

if(isset($argsObj->platform_id) && $argsObj->platform_id > 0)
{
$filters['platform_id'] = $argsObj->platform_id;
}
Expand Down

0 comments on commit d38ac13

Please sign in to comment.