summaryrefslogtreecommitdiffstats
path: root/template/en/default/reports/report-table.csv.tmpl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-11-18 08:04:57 +0100
committermkanat%bugzilla.org <>2009-11-18 08:04:57 +0100
commita44e152480c9c22ca9b3a89da774317c5590d21b (patch)
tree035210618c0987beaffc953cbf09611866e0d3e5 /template/en/default/reports/report-table.csv.tmpl
parentbc19f61c0c33e71a00dcc8e4ca3e791a9e3b661d (diff)
downloadbugzilla-a44e152480c9c22ca9b3a89da774317c5590d21b.tar.gz
bugzilla-a44e152480c9c22ca9b3a89da774317c5590d21b.tar.xz
Bug 519142: Replace IF/ELSE statements about bug_status/resolution with just a display_value call, and use display_value in more places to translate field values.
Patch by Vitaly Fedrushkov <vitaly.fedrushkov@gmail.com> r=mkanat, a=mkanat
Diffstat (limited to 'template/en/default/reports/report-table.csv.tmpl')
-rw-r--r--template/en/default/reports/report-table.csv.tmpl8
1 files changed, 2 insertions, 6 deletions
diff --git a/template/en/default/reports/report-table.csv.tmpl b/template/en/default/reports/report-table.csv.tmpl
index 3694b9b35..4d8b50a85 100644
--- a/template/en/default/reports/report-table.csv.tmpl
+++ b/template/en/default/reports/report-table.csv.tmpl
@@ -67,12 +67,8 @@
[% END %]
[% BLOCK value_display %]
- [% SET disp_value = value %]
- [% IF field == 'bug_status' %]
- [% SET disp_value = display_value("bug_status", value) %]
- [% ELSIF field == 'resolution' %]
- [% SET disp_value = display_value("resolution", value) %]
- [% ELSIF field == 'assigned_to' OR field == 'reporter'
+ [% SET disp_value = display_value(field, value) %]
+ [% IF field == 'assigned_to' OR field == 'reporter'
OR field == 'qa_contact'
%]
[% disp_value = value FILTER email %]