After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 140371 - Add original bug number to the "Resolved: DUPLICATE" thing on the top of dups
Add original bug number to the "Resolved: DUPLICATE" thing on the top of dups
Status: RESOLVED FIXED
Product: bugzilla.gnome.org
Classification: Infrastructure
Component: general
unspecified
Other Linux
: High minor
: ---
Assigned To: Bugzilla Maintainers
Bugzilla Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-04-18 02:44 UTC by Mariano Suárez-Alvarez
Modified: 2005-02-26 21:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add duplicate link & bug_link filter (3.03 KB, patch)
2004-12-27 22:05 UTC, Olav Vitters
none Details | Review
Patch v2, fixes problem if dupe_id isn't in duplicates table (3.05 KB, patch)
2005-02-26 21:18 UTC, Olav Vitters
none Details | Review

Description Mariano Suárez-Alvarez 2004-04-18 02:44:09 UTC
Scanning long bugs is annoying ;-)
Comment 1 Luis Villa 2004-04-19 17:08:36 UTC
Sort of done. Actually, eww, terribly broken. Turns out I might not have that
data in the template- I have to look more. reverting the change for now.
Comment 2 Andrew Sobala 2004-04-20 10:48:34 UTC
AAAAAAAAAAAAARRRRRRRRRRRRGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHH

Bug 140577 looks nasty. Can we fix or revert?
Comment 3 Luis Villa 2004-04-21 14:46:11 UTC
Oh, fuck, I thought I did revert. will fix shortly.
Comment 4 Andrew Sobala 2004-06-05 17:28:19 UTC
ping-a-luis!

("Andrew is going through his bugmail")
Comment 5 Olav Vitters 2004-12-27 22:05:50 UTC
Created attachment 35238 [details] [review]
Add duplicate link & bug_link filter

Patch does the following:
1. Modifies bug_form.pl to fetch the dup_id if a bug has the 'DUPLICATE'
resolution.
2. Add a bug_link filter to globals.pl (can be used by any template). This
filter creates a link with the title set to the description. This filter will
be in Bugzilla 2.18.x and is already used in other parts (the filter uses the
existing GetBugLink function).
3. Add bug_link stub filter to checksetup.pl. According to a comment in
globals.pl this stub filter should also be added to t/004template.t. Strangely
it already exists there.
4. Change template/en/default/bug/edit.html.tmpl to show the link if the bug
has the 'DUPLICATE' resolution using the bug_link filter.

Note that for some other bug I've also had to change globals.pl. It still
applies although it'll whine about the line numbers.

I've tested these changes locally.
Comment 6 Olav Vitters 2005-02-26 21:18:13 UTC
Created attachment 37982 [details] [review]
Patch v2, fixes problem if dupe_id isn't in duplicates table

This patch has been in my local installation for a few months.
Comment 7 Olav Vitters 2005-02-26 21:25:54 UTC
Committed, marking fixed.