diff -ru bugzilla.org/Bugzilla/Template.pm bugzilla/Bugzilla/Template.pm --- bugzilla.org/Bugzilla/Template.pm 2009-12-03 00:33:08.000000000 +0100 +++ bugzilla/Bugzilla/Template.pm 2010-02-23 12:40:15.657992580 +0100 @@ -284,6 +284,11 @@ "$1") ~egox; + my $issue_re = qr/\Qissue\E\s*\#?\s*(\d+)/i; + $text =~ s~\b($issue_re) + ~ get_bug_link($2,$1) + ~egmx; + # Old duplicate markers. These don't use $bug_word because they are old # and were never customizable. $text =~ s~(?<=^\*\*\*\ This\ bug\ has\ been\ marked\ as\ a\ duplicate\ of\ ) @@ -292,6 +297,12 @@ ~get_bug_link($1, $1) ~egmx; + $text =~ s~(?<=^\*\*\*\ This\ issue\ has\ been\ marked\ as\ a\ duplicate\ of\ ) + (\d+) + (?=\ \*\*\*\Z) + ~get_bug_link($1, $1) + ~egmx; + # Now remove the encoding hacks $text =~ s/\0\0(\d+)\0\0/$things[$1]/eg; $text =~ s/$chr1\0/\0/g; Only in bugzilla/Bugzilla: Template.pm.orig