From: bugreport%peshkin.net <> Date: Tue, 31 May 2005 22:42:44 +0000 (+0000) Subject: Bug 294802: Make admin/table.html.tmpl replace multiple occurrances of %%column%% X-Git-Tag: bugzilla-2.20rc1~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae6a0652d46f81ca46f6261abd23d49a19001540;p=thirdparty%2Fbugzilla.git Bug 294802: Make admin/table.html.tmpl replace multiple occurrances of %%column%% Patch by dmelentyev r=joel, a=justdave --- diff --git a/template/en/default/admin/table.html.tmpl b/template/en/default/admin/table.html.tmpl index 4254f80e19..ff554429a0 100644 --- a/template/en/default/admin/table.html.tmpl +++ b/template/en/default/admin/table.html.tmpl @@ -76,9 +76,13 @@ [% IF c.contentlink %] [% link_uri = c.contentlink %] - [% FOREACH m = link_uri.match('%%(.+?)%%'); %] - [% IF row.$m %] - [% replacement_value = FILTER url_quote; row.$m; END %] + [% WHILE link_uri.search('%%(.+?)%%')%] + [% FOREACH m = link_uri.match('%%(.+?)%%') %] + [% IF row.$m %] + [% replacement_value = FILTER url_quote; row.$m; END %] + [% ELSE %] + [% replacement_value = "" %] + [% END %] [% link_uri = link_uri.replace("%%$m%%", replacement_value) %] [% END %] [% END %]