aboutsummaryrefslogtreecommitdiffstats
path: root/editvalues.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editvalues.cgi')
-rwxr-xr-xeditvalues.cgi7
1 files changed, 4 insertions, 3 deletions
diff --git a/editvalues.cgi b/editvalues.cgi
index 03d1f172d..361e206e5 100755
--- a/editvalues.cgi
+++ b/editvalues.cgi
@@ -170,11 +170,12 @@ $vars->{'field'} = $field_obj;
trick_taint($field);
sub display_field_values {
+ my $template = Bugzilla->template;
my $field = $vars->{'field'}->name;
my $fieldvalues =
- $dbh->selectall_arrayref("SELECT value AS name, sortkey"
- . " FROM $field ORDER BY sortkey, value",
- {Slice =>{}});
+ Bugzilla->dbh->selectall_arrayref("SELECT value AS name, sortkey"
+ . " FROM $field ORDER BY sortkey, value",
+ {Slice =>{}});
$vars->{'values'} = $fieldvalues;
$vars->{'default'} = Bugzilla->params->{$defaults{$field}} if defined $defaults{$field};