summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/custom_fields/cf-js.js.tmpl
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-07-06 00:15:12 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-07-06 00:15:12 +0200
commit97fc35368cde9f7d5bd98c91ef4fa9d29786bc34 (patch)
tree747c6b89b135860dcc7ffb24ca54b4d67d862ccd /template/en/default/admin/custom_fields/cf-js.js.tmpl
parentbcab6fcb10aa88683490bef03c607173f9c0b063 (diff)
downloadbugzilla-97fc35368cde9f7d5bd98c91ef4fa9d29786bc34.tar.gz
bugzilla-97fc35368cde9f7d5bd98c91ef4fa9d29786bc34.tar.xz
Bug 564433: Localized values are not displayed in the "Field only appears when" field when editing custom fields
r/a=mkanat
Diffstat (limited to 'template/en/default/admin/custom_fields/cf-js.js.tmpl')
-rw-r--r--template/en/default/admin/custom_fields/cf-js.js.tmpl5
1 files changed, 3 insertions, 2 deletions
diff --git a/template/en/default/admin/custom_fields/cf-js.js.tmpl b/template/en/default/admin/custom_fields/cf-js.js.tmpl
index 4c95a1690..528b88b2d 100644
--- a/template/en/default/admin/custom_fields/cf-js.js.tmpl
+++ b/template/en/default/admin/custom_fields/cf-js.js.tmpl
@@ -31,9 +31,10 @@ var select_values = new Array();
[%# Prefix components with the name of their product so that admins
know which component we're talking about. #%]
[% IF sel_field.name == 'component' %]
- [% SET value_name = legal_value.product.name _ ': ' _ legal_value.name %]
+ [% SET value_name = display_value('product', legal_value.product.name) _ ': '
+ _ display_value(sel_field.name, legal_value.name) %]
[% ELSE %]
- [% SET value_name = legal_value.name %]
+ [% SET value_name = display_value(sel_field.name, legal_value.name) %]
[% END %]
[[% legal_value.id FILTER js %], '[% value_name FILTER js %]'][% ',' UNLESS loop.last %]
[% END %]