From a0cb5b08f1d4c9218d64d8e0471ce0fb5578939c Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 1 Jul 2009 11:02:20 +0000 Subject: Bug 500900: Confirming bugs requires NEW state to exist - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Product.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Bugzilla/Product.pm') diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm index 4d0082006..1db5e79b3 100644 --- a/Bugzilla/Product.pm +++ b/Bugzilla/Product.pm @@ -149,7 +149,6 @@ sub preload { sub update { my $self = shift; my $dbh = Bugzilla->dbh; - my $user = Bugzilla->user; # Don't update the DB if something goes wrong below -> transaction. $dbh->bz_start_transaction(); @@ -242,7 +241,7 @@ sub update { my @updated_bugs = (); foreach my $bug_id (@$bug_list) { - my $confirmed = CheckIfVotedConfirmed($bug_id, $user->id); + my $confirmed = CheckIfVotedConfirmed($bug_id); push (@updated_bugs, $bug_id) if $confirmed; } $changes->{'confirmed_bugs'} = \@updated_bugs; -- cgit v1.2.3-24-g4f1b