$it_mgr = new tlIssueTracker($db);
    $its = $it_mgr->getInterfaceObject($args->tproject_id);
    unset($it_mgr);
}
$labels = init_labels(array('deleted_user' => null, 'design' => null, 'execution' => null, 'execution_history' => null, 'nobody' => null, 'info_only_with_tester_assignment' => null, 'th_bugs_not_linked' => null, 'info_notrun_tc_report' => null));
$gui->tplan_name = $tplan_info['name'];
$gui->tproject_name = $tproject_info['name'];
$testCaseCfg = config_get('testcase_cfg');
$mailCfg = buildMailCfg($gui);
$gui->report_context = $labels['info_only_with_tester_assignment'];
$gui->info_msg = '';
$gui->bugs_msg = '';
if ($args->type == $statusCode['not_run']) {
    $gui->notRunReport = true;
    $gui->info_msg = $labels['info_notrun_tc_report'];
    $metrics = $metricsMgr->getNotRunWithTesterAssigned($args->tplan_id, null, array('output' => 'array'));
    $notesAccessKey = 'summary';
    $userAccessKey = 'user_id';
} else {
    $gui->notRunReport = false;
    $gui->info_msg = lang_get('info_' . $resultsCfg['code_status'][$args->type] . '_tc_report');
    $metrics = $metricsMgr->getExecutionsByStatus($args->tplan_id, $args->type, null, array('output' => 'mapByExecID', 'getOnlyAssigned' => true));
    $notesAccessKey = 'execution_notes';
    $userAccessKey = 'tester_id';
}
$cfOnExec = $cfSet = null;
// done here in order to get some config about images
$smarty = new TLSmarty();
if (!is_null($metrics) and count($metrics) > 0) {
    if ($args->addOpAccess) {
        $links = featureLinks($labels, $smarty->getImages());