diff options
author | bugreport%peshkin.net <> | 2005-06-01 00:42:44 +0200 |
---|---|---|
committer | bugreport%peshkin.net <> | 2005-06-01 00:42:44 +0200 |
commit | ae6a0652d46f81ca46f6261abd23d49a19001540 (patch) | |
tree | 0917be30daf7319fbb0038cefdc9111f039c1133 /template/en | |
parent | dcc141ae3ca05a266174ad1a89e5499ec8bc674b (diff) | |
download | bugzilla-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
Diffstat (limited to 'template/en')
-rw-r--r-- | template/en/default/admin/table.html.tmpl | 10 |
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 %] |