Commit 49d12c8c authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 398883: [mod_perl] Three Variable "$cgi" will not stay shared errors in current CVS HEAD

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent 092135aa
...@@ -609,6 +609,7 @@ sub doGroupChanges { ...@@ -609,6 +609,7 @@ sub doGroupChanges {
sub _do_add { sub _do_add {
my ($group, $changes, $sth_insert, $field, $type, $reverse) = @_; my ($group, $changes, $sth_insert, $field, $type, $reverse) = @_;
my $cgi = Bugzilla->cgi;
my $current; my $current;
# $reverse means we're doing a granted_by--that is, somebody else # $reverse means we're doing a granted_by--that is, somebody else
...@@ -639,6 +640,7 @@ sub _do_add { ...@@ -639,6 +640,7 @@ sub _do_add {
sub _do_remove { sub _do_remove {
my ($group, $changes, $sth_delete, $field, $type, $reverse) = @_; my ($group, $changes, $sth_delete, $field, $type, $reverse) = @_;
my $cgi = Bugzilla->cgi;
my $remove_items = Bugzilla::Group->new_from_list([$cgi->param($field)]); my $remove_items = Bugzilla::Group->new_from_list([$cgi->param($field)]);
foreach my $remove (@$remove_items) { foreach my $remove (@$remove_items) {
......
...@@ -111,6 +111,7 @@ local our %default; ...@@ -111,6 +111,7 @@ local our %default;
# and ignore any multiple values. # and ignore any multiple values.
sub PrefillForm { sub PrefillForm {
my ($buf) = (@_); my ($buf) = (@_);
my $cgi = Bugzilla->cgi;
$buf = new Bugzilla::CGI($buf); $buf = new Bugzilla::CGI($buf);
my $foundone = 0; my $foundone = 0;
......
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