Closed Bug 505640 Opened 15 years ago Closed 15 years ago

Linkify bug numbers when displaying bug summary at the top of a bug

Categories

(Bugzilla :: User Interface, enhancement)

3.2.4
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: jruderman, Assigned: reed)

References

()

Details

(Whiteboard: [wanted-bmo])

Attachments

(1 file)

Reed has a patch to linkify bug numbers that appear in bug summaries (when shown at the top of a bug report).  We've used it as a bugzilla.mozilla.org local customization (see bug 452933).  Does Bugzilla want this patch?
Attached patch patch - v1Splinter Review
Assignee: ui → reed
Status: NEW → ASSIGNED
Attachment #389858 - Flags: review?(LpSolit)
Target Milestone: --- → Bugzilla 3.4
Version: unspecified → 3.2.4
Comment on attachment 389858 [details] [diff] [review]
patch - v1

r=LpSolit
Attachment #389858 - Flags: review?(LpSolit) → review+
We are frozen for 3.4, and this is an enhancement bug.
Flags: approval+
Target Milestone: Bugzilla 3.4 → Bugzilla 3.6
Doesn't quoteUrls(bug.bug_id) make all bug links into links to *this* bug?
(In reply to comment #4)
> Doesn't quoteUrls(bug.bug_id) make all bug links into links to *this* bug?

It's what I used on bmo with Bugzilla v3.0, and it worked fine. It got lost when ES did the v3.0 --> v3.2 upgrade, sadly. I will look at the code and double-check, though.
(In reply to comment #4)
> Doesn't quoteUrls(bug.bug_id) make all bug links into links to *this* bug?

No. It makes "comment 434" to point to comment 434 of the current bug. If you don't specify it, and "comment 434" appears in the bug summary, it will point either to show_bug.cgi or process_bug.cgi, depending if you just edited the bug or not. So bug.bug_id is only useful to determine which bug you are referring to when specifying "comment foo" alone (instead of the full "bug foo comment bar" notation). So this is the correct fix.
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.160; previous revision: 1.159
done
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [wanted-bmo]
Blocks: 580217
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: