diff options
author | lpsolit%gmail.com <> | 2009-07-01 13:02:20 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2009-07-01 13:02:20 +0200 |
commit | a0cb5b08f1d4c9218d64d8e0471ce0fb5578939c (patch) | |
tree | aad1c8bdc746ec0631d3c929ae92b29a494d6ceb /Bugzilla/Product.pm | |
parent | df68aac676998db0789b080a11ccceb4c57faaed (diff) | |
download | bugzilla-a0cb5b08f1d4c9218d64d8e0471ce0fb5578939c.tar.gz bugzilla-a0cb5b08f1d4c9218d64d8e0471ce0fb5578939c.tar.xz |
Bug 500900: Confirming bugs requires NEW state to exist - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/Product.pm')
-rw-r--r-- | Bugzilla/Product.pm | 3 |
1 files changed, 1 insertions, 2 deletions
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; |