aboutsummaryrefslogtreecommitdiffstats
path: root/editvalues.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-01-28 07:36:13 +0000
committerlpsolit%gmail.com <>2008-01-28 07:36:13 +0000
commit9c9ddf6f574a6b6806fac49912e512757e996fc6 (patch)
tree75b6be4d26172e981f99853caf572cb1ffcb876a /editvalues.cgi
parent80aa5e83cb34a4b9ad0ef31cac749aa9dcf6d791 (diff)
downloadbugs-9c9ddf6f574a6b6806fac49912e512757e996fc6.tar
bugs-9c9ddf6f574a6b6806fac49912e512757e996fc6.tar.gz
bugs-9c9ddf6f574a6b6806fac49912e512757e996fc6.tar.bz2
bugs-9c9ddf6f574a6b6806fac49912e512757e996fc6.tar.xz
bugs-9c9ddf6f574a6b6806fac49912e512757e996fc6.zip
Bug 414281: editvalues.cgi variables badly scoped under mod_perl - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
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};