diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/admin/custom_fields/cf-js.js.tmpl | 5 | ||||
-rw-r--r-- | template/en/default/admin/custom_fields/edit.html.tmpl | 4 |
2 files changed, 5 insertions, 4 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 %] diff --git a/template/en/default/admin/custom_fields/edit.html.tmpl b/template/en/default/admin/custom_fields/edit.html.tmpl index 4c1bbbeb0..755c3642c 100644 --- a/template/en/default/admin/custom_fields/edit.html.tmpl +++ b/template/en/default/admin/custom_fields/edit.html.tmpl @@ -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> |