Closed
Bug 155388
Opened 22 years ago
Closed 22 years ago
Site navigation bar link broken in 2.16
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.16
People
(Reporter: toms.baugis, Assigned: jouni)
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
1.34 KB,
patch
|
gerv
:
review+
bbaetz
:
review+
|
Details | Diff | Splinter Review |
Site navigation bar links broken in 2.16 Reasons: 1) edit.html.tmpl passes header_html parameter to header template (wich doesn't have such parameter) 2) it seems to me, that TT doesn't allow to call functions as it is done in edit.html.tmpl
Reporter | ||
Updated•22 years ago
|
Keywords: regression
Assignee | ||
Comment 1•22 years ago
|
||
Right. I'll take a look at this. Note: this didn't regress from 2.14, but rather from an pre-templatization version of 2.16.
Assignee: justdave → jouni
Target Milestone: --- → Bugzilla 2.16
Assignee | ||
Comment 2•22 years ago
|
||
Well, this was apparently broken by templatization. This patch does the following: <link> stuff is passed into the html template as a string. A sub ref is not passed. navigation_links() in CGI.pl now takes a array ref instead of the colon separated list. That's much cleaner anyway. Also removed some redundant logic with the cookie list handling.
Assignee | ||
Comment 3•22 years ago
|
||
Gerv, can you review this? It's your code mostly, I believe. t.baugis@konts.lv: As your statement about header.html.tmpl not having "header_html", that's not the case. But it's true that the interface comment doesn't mention the param. I'll patch that separately.
Comment 4•22 years ago
|
||
If you are going to fix this (and it does need doing), then the <link> elements should be directly in the template, rather than created by the navigation_links() function. $vars->{'buglist'} = \@buglist; Then, in the template: <link rel="First" href="show_bug.cgi?id=[% buglist.first %]"> <link rel="Last" href="show_bug.cgi?id=[% buglist.last %]"> ... (This is pseudo-code; it's probably a bit more complicated than this, but not much. Gerv
Assignee | ||
Comment 5•22 years ago
|
||
I agree that this is the correct solution, but do you really consider that to be the minimal impact fix you for 2.16? I have no problem doing it, but I think that templatizing this and properly fixing up the links could be left for bug 155389 which has even more uses for these elements.
Comment 6•22 years ago
|
||
let's do minimum impact for 2.16 and fix it right (in the other bug) for 2.18. trunk has officially departed from the 2.16 branch, so we need to wrap up 2.16 before we confuse ourselves. :-)
Assignee | ||
Comment 7•22 years ago
|
||
Gerv?
Comment 8•22 years ago
|
||
If we want a minimum-impact fix, we shouldn't be doing this: "navigation_links() in CGI.pl now takes a array ref instead of the colon separated list. That's much cleaner anyway. Also removed some redundant logic with the cookie list handling." The minimum-impact fix looks like this to me: + # Create the <link> elements for browsing bug lists + $vars->{'navigation_links'} = navigation_links(); Gerv
Assignee | ||
Comment 9•22 years ago
|
||
You're right. Here is a simplified version. How do you feel about this, Gerv?
Attachment #90068 -
Attachment is obsolete: true
Comment 10•22 years ago
|
||
Comment on attachment 90278 [details] [diff] [review] v2: KISS r=gerv. Seems correct to me. Gerv
Attachment #90278 -
Flags: review+
Comment 11•22 years ago
|
||
Comment on attachment 90278 [details] [diff] [review] v2: KISS looks fine to me r=bbaetz
Attachment #90278 -
Flags: review+
Assignee | ||
Comment 12•22 years ago
|
||
Checked into trunk and branch: -- Checking in bug_form.pl; /cvsroot/mozilla/webtools/bugzilla/bug_form.pl,v <-- bug_form.pl new revision: 1.96; previous revision: 1.95 done Checking in template/en/default/bug/edit.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/edit.html.tmpl,v <-- edit.html.tmpl new revision: 1.12; previous revision: 1.11 done Checking in bug_form.pl; /cvsroot/mozilla/webtools/bugzilla/bug_form.pl,v <-- bug_form.pl new revision: 1.93.2.1; previous revision: 1.93 done Checking in template/en/default/bug/edit.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/edit.html.tmpl,v <-- edit.html.tmpl new revision: 1.7.2.4; previous revision: 1.7.2.3 done
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 13•22 years ago
|
||
Jouni: can you open a 2.18 bug for the full fix? Gerv
Assignee | ||
Comment 14•22 years ago
|
||
Bug 155389 is precisely that thing. :-)
Updated•12 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
•