Commit 97fc3536 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 564433: Localized values are not displayed in the "Field only appears when"…

Bug 564433: Localized values are not displayed in the "Field only appears when" field when editing custom fields r/a=mkanat
parent bcab6fcb
......@@ -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 %]
......
......@@ -125,9 +125,9 @@
[% ' selected="selected"'
IF field.visibility_value.id == value.id %]>
[% IF field.visibility_field.name == 'component' %]
[% value.product.name FILTER html %]:
[% display_value('product', value.product.name) FILTER html %]:
[% END %]
[%+ value.name FILTER html %]
[%+ display_value(field.visibility_field.name, value.name) FILTER html %]
</option>
[% END %]
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment