Closed Bug 193511 Opened 22 years ago Closed 22 years ago

post_bug page has two headers

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

2.17.3
defect
Not set
major

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: gerv, Assigned: gerv)

Details

Attachments

(1 file)

This is fallout from bug 191087. When you submit a bug, the resulting page has two headers. This is because results.html.tmpl, which is used for posting bugs as well as processing them, checks for header_done and, if it's not set, prints a header. However, created.html.tmpl does not set header_done. Gerv
Attached patch Patch v.1Splinter Review
Trivial patch. Gerv
Attachment #114582 - Flags: review?(burnus)
Comment on attachment 114582 [details] [diff] [review] Patch v.1 maybe header.html.tmpl and process/header.html.tmpl should set header_done within them?
Comment on attachment 114582 [details] [diff] [review] Patch v.1 I think this a fallout from bug 193286 not from bug 191087.
Attachment #114582 - Flags: review?(burnus) → review+
> maybe header.html.tmpl and process/header.html.tmpl should set header_done > within them? Sounds reasonable. It would be nice if we could get rid of constructs like $::template->process("global/header.html.tmpl", $::vars) || ThrowTemplateError($::template->error()); $vars->{'header_done'} = 1; but then we would need to pass the var as reference. How about checking this in for 2.17.4 and then afterwards investigating whether we can set it in */header.html.tmpl and remove setting header_done in all other places.
Yes, setting header_done in the template is the obvious thing. I thought of that, but as the patch was much bigger, thought we'd get this fix in first. $::vars is a reference already, so we have no problems there. Gerv
Requesting approval. Gerv
Flags: approval?
Flags: approval? → approval+
Is it worth fixing header_done to work "right" when bbaetz is bent on eliminating it altogther? Fixed. Checking in template/en/default/bug/create/created.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/create/created.html.tmpl,v <-- created.html.tmpl new revision: 1.6; previous revision: 1.5 done Gerv
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Well, I haven't decied if I plan to remove it entirely. Note that I did manage to do so for show_bug when I rewrote that, so its not impossible. It may require process_bug to be rewritten first, mind you
Target Milestone: --- → Bugzilla 2.18
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: