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,9 +170,10 @@ $vars->{'field'} = $field_obj; ...@@ -170,9 +170,10 @@ $vars->{'field'} = $field_obj;
trick_taint($field); trick_taint($field);
sub display_field_values { sub display_field_values {
my $template = Bugzilla->template;
my $field = $vars->{'field'}->name; my $field = $vars->{'field'}->name;
my $fieldvalues = my $fieldvalues =
$dbh->selectall_arrayref("SELECT value AS name, sortkey" Bugzilla->dbh->selectall_arrayref("SELECT value AS name, sortkey"
. " FROM $field ORDER BY sortkey, value", . " FROM $field ORDER BY sortkey, value",
{Slice =>{}}); {Slice =>{}});
......
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