Skip to content

Commit

Permalink
ticket 8183: missing apikey
Browse files Browse the repository at this point in the history
  • Loading branch information
fmancardi committed Feb 24, 2018
1 parent fcf1c2c commit e2d1d1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/functions/print.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -2205,6 +2205,7 @@ function renderExecutionForPrinting(&$dbHandler, $baseHref, $id, $userObj = null

$tprojectMgr = new testproject($dbHandler);
$tcaseMgr = new testcase($dbHandler);
$tplanMgr = new testplan($dbHandler);
}

$sql = " SELECT E.id AS execution_id, E.status, E.execution_ts, E.tester_id," .
Expand Down Expand Up @@ -2281,8 +2282,10 @@ function renderExecutionForPrinting(&$dbHandler, $baseHref, $id, $userObj = null
$context['user'] = $userObj;
$out .= renderTestCaseForPrinting($dbHandler,$tcase,$renderOptions,$env,$context,$indentLevel);

$tplanInfo = $tplanMgr->get_by_id($context['tplan_id']);
$out .= '<br/>' . lang_get('direct_link') . ':' .
$env->base_href . 'lnl.php?type=exec&id=' . intval($id) . '<br/>';
$env->base_href . 'lnl.php?type=exec&id=' . intval($id) .
'&apikey=' . $tplanInfo['api_key'] . '<br/>';
$exec_info = null;
}

Expand Down

0 comments on commit e2d1d1f

Please sign in to comment.