Bug 414281: editvalues.cgi variables badly scoped under mod_perl - Patch by Fr��d��ric Buclin <LpSolit@gmail.com> r/a=mkanat

This commit is contained in:
lpsolit%gmail.com 2008-01-28 01:36:13 +00:00
Родитель 2690eae7e1
Коммит c9ba677b90
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -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};