From 9c9ddf6f574a6b6806fac49912e512757e996fc6 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 28 Jan 2008 07:36:13 +0000 Subject: =?UTF-8?q?Bug=20414281:=20editvalues.cgi=20variables=20badly=20sc?= =?UTF-8?q?oped=20under=20mod=5Fperl=20-=20Patch=20by=20Fr=C3=83=C2=A9d?= =?UTF-8?q?=C3=83=C2=A9ric=20Buclin=20=20r/a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editvalues.cgi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'editvalues.cgi') 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}; -- cgit v1.2.1