зеркало из https://github.com/mozilla/pjs.git
Fixed datestamps in reports.
This commit is contained in:
Родитель
1563f4ac86
Коммит
1c5260f5b6
|
@ -176,7 +176,7 @@ sub init {
|
|||
$columns{'priority'} = "map_caserun_priority.value";
|
||||
$columns{'default_tester'} = "map_caserun_default_tester.login_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
|
||||
# so that we always select 3 items in the query.
|
||||
|
|
|
@ -177,7 +177,7 @@ sub init {
|
|||
}
|
||||
if (grep(/map_case_author/, @$fields)) {
|
||||
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)) {
|
||||
push @supptables, "INNER JOIN profiles AS map_default_tester " .
|
||||
|
@ -295,10 +295,10 @@ sub init {
|
|||
if (grep(/map_caserun_components/, @$fields)) {
|
||||
push @supptables, "INNER JOIN test_cases AS map_caserun_cases " .
|
||||
"ON test_case_runs.case_id = map_caserun_cases.case_id";
|
||||
push @supptables, "INNER JOIN test_cases AS map_caserun_cases " .
|
||||
"ON map_caserun_cases.case_id = test_case_components.case_id";
|
||||
push @supptables, "INNER JOIN test_case_components AS case_components " .
|
||||
"ON map_caserun_cases.case_id = case_components.case_id";
|
||||
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}";
|
||||
print $cgi->header(-type => $format->{'ctype'},
|
||||
-content_disposition => "inline; filename=$filename");
|
||||
|
||||
$vars->{'time'} = time();
|
||||
$template->process("$format->{'template'}", $vars)
|
||||
|| ThrowTemplateError($template->error());
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ else{
|
|||
my $filename = "report-" . $report->{'date'} . ".$format->{extension}";
|
||||
print $cgi->header(-type => $format->{'ctype'},
|
||||
-content_disposition => "inline; filename=$filename");
|
||||
|
||||
$vars->{'time'} = time();
|
||||
$template->process("$format->{'template'}", $vars)
|
||||
|| ThrowTemplateError($template->error());
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ else{
|
|||
my $filename = "report-" . $report->{'date'} . ".$format->{extension}";
|
||||
print $cgi->header(-type => $format->{'ctype'},
|
||||
-content_disposition => "inline; filename=$filename");
|
||||
|
||||
$vars->{'time'} = time();
|
||||
$template->process("$format->{'template'}", $vars)
|
||||
|| ThrowTemplateError($template->error());
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ my $format = $template->get_format("testopia/reports/report", $formatparam,
|
|||
my $filename = "report-" . $report->{'date'} . ".$format->{extension}";
|
||||
print $cgi->header(-type => $format->{'ctype'},
|
||||
-content_disposition => "inline; filename=$filename");
|
||||
|
||||
$vars->{'time'} = time();
|
||||
$template->process("$format->{'template'}", $vars)
|
||||
|| ThrowTemplateError($template->error());
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче