]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 506056 - Status and Resolution in Search description not localizable.
authorwurblzap%gmail.com <>
Thu, 23 Jul 2009 22:01:08 +0000 (22:01 +0000)
committerwurblzap%gmail.com <>
Thu, 23 Jul 2009 22:01:08 +0000 (22:01 +0000)
Patch by Marc Schumann <wurblzap@gmail.com>;
r/a=mkanat

template/en/default/list/list.html.tmpl

index e0676b2b7960009df50d1c1bd20a045b8bd9b163..c723e3f9558dd78b023d6375c463ef714f723194 100644 (file)
     [% IF shown_types.contains(desc_item.type) || debug %]
       ([% search_descs.${desc_item.type} FILTER html %])
     [% END %]
-    [%+ desc_item.value FILTER html %]
+    [% IF desc_item.field == 'bug_status' %]
+      [% FOREACH status IN desc_item.value.split(',') %]
+        [%+ get_status(status) FILTER html %][% ',' UNLESS loop.last %]
+      [% END %]
+    [% ELSIF desc_item.field == 'resolution' %]
+      [% FOREACH resolution IN desc_item.value.split(',') %]
+        [%+ get_resolution(resolution) FILTER html %][% ',' UNLESS loop.last %]
+      [% END %]
+    [% ELSE %]
+      [%+ desc_item.value FILTER html %]
+    [% END %]
     [% IF debug %]
       (<code>[% desc_item.term FILTER html %]</code>)
    [% END %]