Closed
Bug 193511
Opened 22 years ago
Closed 22 years ago
post_bug page has two headers
Categories
(Bugzilla :: Creating/Changing Bugs, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: gerv, Assigned: gerv)
Details
Attachments
(1 file)
618 bytes,
patch
|
burnus
:
review+
|
Details | Diff | Splinter Review |
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
Assignee | ||
Comment 1•22 years ago
|
||
Trivial patch.
Gerv
Assignee | ||
Updated•22 years ago
|
Attachment #114582 -
Flags: review?(burnus)
Comment 2•22 years ago
|
||
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 3•22 years ago
|
||
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+
Comment 4•22 years ago
|
||
> 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.
Assignee | ||
Comment 5•22 years ago
|
||
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
Updated•22 years ago
|
Flags: approval? → approval+
Assignee | ||
Comment 7•22 years ago
|
||
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
Comment 8•22 years ago
|
||
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
Updated•22 years ago
|
Target Milestone: --- → Bugzilla 2.18
Updated•13 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•