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(); ...@@ -31,9 +31,10 @@ var select_values = new Array();
[%# Prefix components with the name of their product so that admins [%# Prefix components with the name of their product so that admins
know which component we're talking about. #%] know which component we're talking about. #%]
[% IF sel_field.name == 'component' %] [% 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 %] [% ELSE %]
[% SET value_name = legal_value.name %] [% SET value_name = display_value(sel_field.name, legal_value.name) %]
[% END %] [% END %]
[[% legal_value.id FILTER js %], '[% value_name FILTER js %]'][% ',' UNLESS loop.last %] [[% legal_value.id FILTER js %], '[% value_name FILTER js %]'][% ',' UNLESS loop.last %]
[% END %] [% END %]
......
...@@ -125,9 +125,9 @@ ...@@ -125,9 +125,9 @@
[% ' selected="selected"' [% ' selected="selected"'
IF field.visibility_value.id == value.id %]> IF field.visibility_value.id == value.id %]>
[% IF field.visibility_field.name == 'component' %] [% IF field.visibility_field.name == 'component' %]
[% value.product.name FILTER html %]: [% display_value('product', value.product.name) FILTER html %]:
[% END %] [% END %]
[%+ value.name FILTER html %] [%+ display_value(field.visibility_field.name, value.name) FILTER html %]
</option> </option>
[% END %] [% END %]
</select> </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