This commit is contained in:
ghendricks%novell.com 2006-10-31 22:20:07 +00:00
Родитель 1563f4ac86
Коммит 1c5260f5b6
6 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -176,7 +176,7 @@ sub init {
$columns{'priority'} = "map_caserun_priority.value"; $columns{'priority'} = "map_caserun_priority.value";
$columns{'default_tester'} = "map_caserun_default_tester.login_name"; $columns{'default_tester'} = "map_caserun_default_tester.login_name";
$columns{'category'} = "map_caserun_category.name"; $columns{'category'} = "map_caserun_category.name";
$columns{'componnet'} = "map_caserun_components.name"; $columns{'component'} = "map_caserun_components.name";
} }
# One which means "nothing". Any number would do, really. It just gets SELECTed # One which means "nothing". Any number would do, really. It just gets SELECTed
# so that we always select 3 items in the query. # so that we always select 3 items in the query.

Просмотреть файл

@ -177,7 +177,7 @@ sub init {
} }
if (grep(/map_case_author/, @$fields)) { if (grep(/map_case_author/, @$fields)) {
push @supptables, "INNER JOIN profiles AS map_case_author " . push @supptables, "INNER JOIN profiles AS map_case_author " .
"ON test_cases.author_id = profiles.userid"; "ON test_cases.author_id = map_case_author.userid";
} }
if (grep(/map_default_tester/, @$fields)) { if (grep(/map_default_tester/, @$fields)) {
push @supptables, "INNER JOIN profiles AS map_default_tester " . push @supptables, "INNER JOIN profiles AS map_default_tester " .
@ -295,10 +295,10 @@ sub init {
if (grep(/map_caserun_components/, @$fields)) { if (grep(/map_caserun_components/, @$fields)) {
push @supptables, "INNER JOIN test_cases AS map_caserun_cases " . push @supptables, "INNER JOIN test_cases AS map_caserun_cases " .
"ON test_case_runs.case_id = map_caserun_cases.case_id"; "ON test_case_runs.case_id = map_caserun_cases.case_id";
push @supptables, "INNER JOIN test_cases AS map_caserun_cases " . push @supptables, "INNER JOIN test_case_components AS case_components " .
"ON map_caserun_cases.case_id = test_case_components.case_id"; "ON map_caserun_cases.case_id = case_components.case_id";
push @supptables, "INNER JOIN components AS map_caserun_components " . push @supptables, "INNER JOIN components AS map_caserun_components " .
"ON map_caserun_cases.component_id = map_caserun_components.id"; "ON case_components.component_id = map_caserun_components.id";
} }
} }

Просмотреть файл

@ -113,7 +113,7 @@ else{
my $filename = "report-" . $report->{'date'} . ".$format->{extension}"; my $filename = "report-" . $report->{'date'} . ".$format->{extension}";
print $cgi->header(-type => $format->{'ctype'}, print $cgi->header(-type => $format->{'ctype'},
-content_disposition => "inline; filename=$filename"); -content_disposition => "inline; filename=$filename");
$vars->{'time'} = time();
$template->process("$format->{'template'}", $vars) $template->process("$format->{'template'}", $vars)
|| ThrowTemplateError($template->error()); || ThrowTemplateError($template->error());

Просмотреть файл

@ -80,7 +80,7 @@ else{
my $filename = "report-" . $report->{'date'} . ".$format->{extension}"; my $filename = "report-" . $report->{'date'} . ".$format->{extension}";
print $cgi->header(-type => $format->{'ctype'}, print $cgi->header(-type => $format->{'ctype'},
-content_disposition => "inline; filename=$filename"); -content_disposition => "inline; filename=$filename");
$vars->{'time'} = time();
$template->process("$format->{'template'}", $vars) $template->process("$format->{'template'}", $vars)
|| ThrowTemplateError($template->error()); || ThrowTemplateError($template->error());

Просмотреть файл

@ -124,7 +124,7 @@ else{
my $filename = "report-" . $report->{'date'} . ".$format->{extension}"; my $filename = "report-" . $report->{'date'} . ".$format->{extension}";
print $cgi->header(-type => $format->{'ctype'}, print $cgi->header(-type => $format->{'ctype'},
-content_disposition => "inline; filename=$filename"); -content_disposition => "inline; filename=$filename");
$vars->{'time'} = time();
$template->process("$format->{'template'}", $vars) $template->process("$format->{'template'}", $vars)
|| ThrowTemplateError($template->error()); || ThrowTemplateError($template->error());

Просмотреть файл

@ -75,7 +75,7 @@ my $format = $template->get_format("testopia/reports/report", $formatparam,
my $filename = "report-" . $report->{'date'} . ".$format->{extension}"; my $filename = "report-" . $report->{'date'} . ".$format->{extension}";
print $cgi->header(-type => $format->{'ctype'}, print $cgi->header(-type => $format->{'ctype'},
-content_disposition => "inline; filename=$filename"); -content_disposition => "inline; filename=$filename");
$vars->{'time'} = time();
$template->process("$format->{'template'}", $vars) $template->process("$format->{'template'}", $vars)
|| ThrowTemplateError($template->error()); || ThrowTemplateError($template->error());