From 85e75aba6a7131da9d63b1f628a27e986bb428c5 Mon Sep 17 00:00:00 2001 From: Tiago Mello Date: Tue, 24 Aug 2010 17:25:49 -0300 Subject: Bug 586871: Convert all Bugzilla->get_fields calls to Bugzilla->fields r/a=mkanat --- template/en/default/admin/custom_fields/cf-js.js.tmpl | 2 +- template/en/default/admin/custom_fields/create.html.tmpl | 4 ++-- template/en/default/admin/custom_fields/edit.html.tmpl | 4 ++-- template/en/default/admin/custom_fields/list.html.tmpl | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'template/en/default') 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 528b88b2d..f9c31b5c7 100644 --- a/template/en/default/admin/custom_fields/cf-js.js.tmpl +++ b/template/en/default/admin/custom_fields/cf-js.js.tmpl @@ -25,7 +25,7 @@ function toggleCheckbox(this_checkbox, other_checkbox_id) { var select_values = new Array(); [% USE Bugzilla %] -[% FOREACH sel_field = Bugzilla.get_fields({ is_select => 1 }) %] +[% FOREACH sel_field = Bugzilla.fields({ is_select => 1 }) %] select_values[[% sel_field.id FILTER js %]] = [ [% FOREACH legal_value = sel_field.legal_values %] [%# Prefix components with the name of their product so that admins diff --git a/template/en/default/admin/custom_fields/create.html.tmpl b/template/en/default/admin/custom_fields/create.html.tmpl index fcdf73bc7..b96738473 100644 --- a/template/en/default/admin/custom_fields/create.html.tmpl +++ b/template/en/default/admin/custom_fields/create.html.tmpl @@ -123,7 +123,7 @@ YAHOO.util.Event.onDOMReady(function() {onChangeType(document.getElementById('ty - [% FOREACH sel_field = Bugzilla.get_fields({ is_select => 1 }) %] + [% FOREACH sel_field = Bugzilla.fields({ is_select => 1 }) %] - [% FOREACH sel_field = Bugzilla.get_fields({ is_select => 1 }) %] + [% FOREACH sel_field = Bugzilla.fields({ is_select => 1 }) %] [% NEXT IF sel_field.id == field.id %]