Bug 193286: Field validation errors had the wrong page title

r= gerv, a= justdave
parent cbb2ab58
...@@ -168,12 +168,6 @@ if ($::COOKIE{"BUGLIST"} && $::FORM{'id'}) { ...@@ -168,12 +168,6 @@ if ($::COOKIE{"BUGLIST"} && $::FORM{'id'}) {
} }
} }
# Start displaying the response page.
$template->process("bug/process/header.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
$vars->{'header_done'} = 1;
GetVersionTable(); GetVersionTable();
CheckFormFieldDefined(\%::FORM, 'product'); CheckFormFieldDefined(\%::FORM, 'product');
...@@ -1670,6 +1664,7 @@ foreach my $id (@idlist) { ...@@ -1670,6 +1664,7 @@ foreach my $id (@idlist) {
# receive email about the change. # receive email about the change.
$template->process("bug/process/results.html.tmpl", $vars) $template->process("bug/process/results.html.tmpl", $vars)
|| ThrowTemplateError($template->error()); || ThrowTemplateError($template->error());
$vars->{'header_done'} = 1;
if ($duplicate) { if ($duplicate) {
# Check to see if Reporter of this bug is reporter of Dupe # Check to see if Reporter of this bug is reporter of Dupe
...@@ -1700,6 +1695,7 @@ foreach my $id (@idlist) { ...@@ -1700,6 +1695,7 @@ foreach my $id (@idlist) {
# Let the user know a duplication notation was added to the original bug. # Let the user know a duplication notation was added to the original bug.
$template->process("bug/process/results.html.tmpl", $vars) $template->process("bug/process/results.html.tmpl", $vars)
|| ThrowTemplateError($template->error()); || ThrowTemplateError($template->error());
$vars->{'header_done'} = 1;
} }
if ($check_dep_bugs) { if ($check_dep_bugs) {
...@@ -1713,6 +1709,7 @@ foreach my $id (@idlist) { ...@@ -1713,6 +1709,7 @@ foreach my $id (@idlist) {
# bug and who did and didn't receive email about it. # bug and who did and didn't receive email about it.
$template->process("bug/process/results.html.tmpl", $vars) $template->process("bug/process/results.html.tmpl", $vars)
|| ThrowTemplateError($template->error()); || ThrowTemplateError($template->error());
$vars->{'header_done'} = 1;
} }
} }
} }
......
...@@ -34,6 +34,10 @@ ...@@ -34,6 +34,10 @@
# bug_id: number; the ID of the bug being changed. # bug_id: number; the ID of the bug being changed.
#%] #%]
[% UNLESS header_done %]
[% PROCESS bug/process/header.html.tmpl %]
[% END %]
<h1>Mid-air collision detected!</h1> <h1>Mid-air collision detected!</h1>
<p> <p>
......
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
# mailrecipients: hash; BugMail recipient params. Optional. # mailrecipients: hash; BugMail recipient params. Optional.
#%] #%]
[% UNLESS header_done %]
[% PROCESS bug/process/header.html.tmpl %]
[% END %]
[% DEFAULT type="bug" %] [% DEFAULT type="bug" %]
[% [%
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment