$doc_info->title = htmlspecialchars(isset($tInfo['name']) ? $args->tproject_name . $tlCfg->gui_title_separator_2 . $tInfo['name'] : $args->tproject_name); break; } break; case DOC_TEST_PLAN_DESIGN: $printingOptions['metrics'] = true; // FORCE // FORCE case DOC_TEST_PLAN_EXECUTION: case DOC_TEST_PLAN_EXECUTION_ON_BUILD: $tplan_mgr = new testplan($db); $tplan_info = $tplan_mgr->get_by_id($args->tplan_id); if ($args->build_id > 0) { //add by guomf for report custome $tempa = $tplan_mgr->get_build_testresult($args->build_id); $tempb = $tplan_mgr->get_build_resultsummary($args->build_id); $doc_info->testresult = htmlspecialchars($tempa['value']); $doc_info->resultsummary = htmlspecialchars_decode($tempb['value']); //htmlspecialchars($tempb['value']); $xx = $tplan_mgr->get_builds($args->tplan_id, null, null, array('buildID' => $args->build_id)); $doc_info->build_name = htmlspecialchars($xx[$args->build_id]['name']); } $doc_info->testplan_name = htmlspecialchars($tplan_info['name']); $doc_info->testplan_scope = $tplan_info['notes']; $doc_info->title = $doc_info->testplan_name; // Changed to get ALL platform attributes. $getOpt = array('outputFormat' => 'mapAccessByID', 'addIfNull' => true); //modify by guomf for print result on special build $platforms = $tplan_mgr->getPlatforms($args->tplan_id, $getOpt); //$platforms = $tplan_mgr->getPlatformsHasExecuted($args->tplan_id,$args->build_id,$getOpt); $platformIDSet = array_keys($platforms);