script-as-closure fix

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@67 6955db30-a419-402b-8a0d-67ecbb4d7f56
custis
vfilippov 2008-12-16 12:11:16 +00:00
parent c94ecfcb5a
commit 1eb3f2c127
1 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ if (@idlist || @lines)
my $wtime = $cgi->param("wtime_$id");
my $newrtime = $cgi->param("newrtime_$id");
my $comment = $cgi->param("comm_$id");
ProcessBug($id, $wtime, $comment, $newrtime);
ProcessBug($dbh, $id, $wtime, $comment, $newrtime);
}
}
if (@lines)
@ -78,7 +78,7 @@ if (@idlist || @lines)
$wtime = 0 if $wtime < 0;
my $id = $10;
my $comment = $line;
ProcessBug($id, $wtime, $comment);
ProcessBug($dbh, $id, $wtime, $comment);
}
}
}
@ -142,7 +142,7 @@ exit;
sub ProcessBug
{
my ($id, $wtime, $comment, $newrtime) = @_;
my ($dbh, $id, $wtime, $comment, $newrtime) = @_;
return unless $id;
$dbh->bz_start_transaction();
my $bug = new Bugzilla::Bug ($id);