Commit 9c9ddf6f authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 414281: editvalues.cgi variables badly scoped under mod_perl - Patch by…

Bug 414281: editvalues.cgi variables badly scoped under mod_perl - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 80aa5e83
......@@ -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};
......
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