示例#1
0
                $userid_array[$testerid] = $testerid;
            }
        }
        $gui->req_details = $mgr->req->get_all_for_tcase($tcase_id);
        $gui->other_execs = getOtherExecutions($db, $tcase_id, $tcversion_id, $gui, $args, $mgr->tcase, $smarty->tlImages);
        // Get attachment,bugs, etc
        if (!is_null($gui->other_execs)) {
            //Get the Tester ID for all previous executions
            foreach ($gui->other_execs as $key => $execution) {
                foreach ($execution as $singleExecution) {
                    $testerid = $singleExecution['tester_id'];
                    $userid_array[$testerid] = $testerid;
                }
            }
            // do not like to much this kind of layout but ...
            list($gui->attachments, $gui->bugs, $gui->other_exec_cfields) = exec_additional_info($db, $mgr, $gui->other_execs, $args->tplan_id, $args->tproject_id, $issueTrackerEnabled, $its);
            // this piece of code is useful to avoid error on smarty template due to undefined value
            if (is_array($tcversion_id) && count($gui->other_execs) != count($gui->map_last_exec)) {
                foreach ($tcversion_id as $version_id) {
                    if (!isset($gui->other_execs[$version_id])) {
                        $gui->other_execs[$version_id] = null;
                    }
                }
            }
        }
        // if(!is_null($gui->other_execs))
    }
}
// if(!is_null($linked_tcversions))
// Removing duplicate and NULL id's
$gui->users = builGuiUsers($db, $userid_array);
示例#2
0
            }
        }
        $gui->req_details = $req_mgr->get_all_for_tcase($tcase_id);
        //Bug 2068
        $gui->other_execs = getOtherExecutions($db, $tcase_id, $tcversion_id, $gui, $args, $cfg, $tcase_mgr);
        // Get attachment,bugs, etc
        if (!is_null($gui->other_execs)) {
            //Get the Tester ID for all previous executions
            foreach ($gui->other_execs as $key => $execution) {
                foreach ($execution as $singleExecution) {
                    $testerid = $singleExecution['tester_id'];
                    $userid_array[$testerid] = $testerid;
                }
            }
            // asimon - added $g_bugInterfaceOn, $g_bugInterface
            $other_info = exec_additional_info($db, $attachmentRepository, $tcase_mgr, $gui->other_execs, $args->tplan_id, $args->tproject_id, $g_bugInterfaceOn, $g_bugInterface);
            $gui->attachments = $other_info['attachment'];
            $gui->bugs = $other_info['bugs'];
            $gui->other_exec_cfields = $other_info['cfexec_values'];
            // this piece of code is useful to avoid error on smarty template due to undefined value
            if (is_array($tcversion_id) && count($gui->other_execs) != count($gui->map_last_exec)) {
                foreach ($tcversion_id as $version_id) {
                    if (!isset($gui->other_execs[$version_id])) {
                        $gui->other_execs[$version_id] = null;
                    }
                }
            }
        }
        // if(!is_null($gui->other_execs))
    }
}
示例#3
0
                 $testerid = $value['tester_id'];
                 $userid_array[$testerid] = $testerid;
             }
         }
         $gui->req_details = $req_mgr->get_all_for_tcase($tcase_id);
         $gui->other_execs = getOtherExecutions($db, $tcase_id, $tcversion_id, $gui, $args, $cfg, $tcase_mgr);
         // Get attachment,bugs, etc
         if (!is_null($gui->other_execs)) {
             //Get the Tester ID for all previous executions
             foreach ($gui->other_execs as $key => $execution) {
                 foreach ($execution as $singleExecution) {
                     $testerid = $singleExecution['tester_id'];
                     $userid_array[$testerid] = $testerid;
                 }
             }
             $other_info = exec_additional_info($db, $attachmentRepository, $tcase_mgr, $gui->other_execs, $args->tplan_id, $args->tproject_id, $info['issue_tracker_enabled'], $its);
             $gui->attachments = $other_info['attachment'];
             $gui->bugs = $other_info['bugs'];
             $gui->other_exec_cfields = $other_info['cfexec_values'];
             // this piece of code is useful to avoid error on smarty template due to undefined value
             if (is_array($tcversion_id) && count($gui->other_execs) != count($gui->map_last_exec)) {
                 foreach ($tcversion_id as $version_id) {
                     if (!isset($gui->other_execs[$version_id])) {
                         $gui->other_execs[$version_id] = null;
                     }
                 }
             }
         }
         // if(!is_null($gui->other_execs))
     }
 }