summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2005-06-01 00:42:44 +0200
committerbugreport%peshkin.net <>2005-06-01 00:42:44 +0200
commitae6a0652d46f81ca46f6261abd23d49a19001540 (patch)
tree0917be30daf7319fbb0038cefdc9111f039c1133
parentdcc141ae3ca05a266174ad1a89e5499ec8bc674b (diff)
downloadbugzilla-ae6a0652d46f81ca46f6261abd23d49a19001540.tar.gz
bugzilla-ae6a0652d46f81ca46f6261abd23d49a19001540.tar.xz
Bug 294802: Make admin/table.html.tmpl replace multiple occurrances of %%column%%
Patch by dmelentyev r=joel, a=justdave
-rw-r--r--template/en/default/admin/table.html.tmpl10
1 files changed, 7 insertions, 3 deletions
diff --git a/template/en/default/admin/table.html.tmpl b/template/en/default/admin/table.html.tmpl
index 4254f80e1..ff554429a 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 %]