Commit 0be9c486 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 812220: bug_link() is called twice per bug in bug/process/results.html.tmpl

r=glob a=LpSolit
parent b0e18c6d
...@@ -121,12 +121,11 @@ sub REQUIRED_MODULES { ...@@ -121,12 +121,11 @@ sub REQUIRED_MODULES {
module => 'DBI', module => 'DBI',
version => (vers_cmp($perl_ver, '5.13.3') > -1) ? '1.614' : '1.54' version => (vers_cmp($perl_ver, '5.13.3') > -1) ? '1.614' : '1.54'
}, },
# 2.22 fixes various problems related to UTF8 strings in hash keys, # 2.24 contains several useful text virtual methods.
# as well as line endings on Windows.
{ {
package => 'Template-Toolkit', package => 'Template-Toolkit',
module => 'Template', module => 'Template',
version => '2.22' version => '2.24'
}, },
# 2.04 implement the "Test" method (to write to data/mailer.testfile). # 2.04 implement the "Test" method (to write to data/mailer.testfile).
{ {
......
...@@ -20,23 +20,22 @@ ...@@ -20,23 +20,22 @@
[% DEFAULT type="bug" %] [% DEFAULT type="bug" %]
[% Link = BLOCK %][% "$terms.Bug $id" FILTER bug_link(id) %][% END %] [% link = BLOCK %][% terms.bug %] [%+ id FILTER bug_link(id) FILTER none %][% END %]
[% link = BLOCK %][% "$terms.bug $id" FILTER bug_link(id) %][% END %]
[% [%
title = { title = {
'bug' => "Changes submitted for $link" , 'bug' => "Changes submitted for $link" ,
'dupe' => "Duplicate notation added to $link" , 'dupe' => "Duplicate notation added to $link" ,
'dep' => "Checking for dependency changes on $link" , 'dep' => "Checking for dependency changes on $link" ,
'created' => "$Link has been added to the database" , 'created' => "$link has been added to the database" ,
'move' => "$Link has been moved to another database" , 'move' => "$link has been moved to another database" ,
} }
%] %]
[% Hook.process('title') %] [% Hook.process('title') %]
<dl> <dl>
<dt>[% title.$type %]</dt> <dt>[% title.$type.ucfirst %]</dt>
<dd> <dd>
[% PROCESS "bug/process/bugmail.html.tmpl" mailing_bugid = id %] [% PROCESS "bug/process/bugmail.html.tmpl" mailing_bugid = id %]
[%# Links to more information about the changed bug. %] [%# Links to more information about the changed bug. %]
......
...@@ -267,9 +267,7 @@ ...@@ -267,9 +267,7 @@
], ],
'bug/process/results.html.tmpl' => [ 'bug/process/results.html.tmpl' => [
'title.$type', 'title.$type.ucfirst',
'"$terms.Bug $id" FILTER bug_link(id)',
'"$terms.bug $id" FILTER bug_link(id)',
], ],
'bug/create/create.html.tmpl' => [ 'bug/create/create.html.tmpl' => [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment