diff options
author | mkanat%bugzilla.org <> | 2008-10-03 06:30:38 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-10-03 06:30:38 +0000 |
commit | fab5d3a38aadaed1e6153c0fbd820449258586b2 (patch) | |
tree | 2e1f8816d56aaf213fd9b4e6812b28ed3cbf8527 /Bugzilla/Product.pm | |
parent | Bug 455632: Add Bugzilla::Field::Choice->create and have editvalues.cgi use it (diff) | |
download | bugzilla-fab5d3a38aadaed1e6153c0fbd820449258586b2.tar.gz bugzilla-fab5d3a38aadaed1e6153c0fbd820449258586b2.tar.bz2 bugzilla-fab5d3a38aadaed1e6153c0fbd820449258586b2.zip |
Bug 455641: Implement Bugzilla::Field::Choice->update and have editvalues.cgi use it
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bbaetz, a=mkanat
Diffstat (limited to 'Bugzilla/Product.pm')
-rw-r--r-- | Bugzilla/Product.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm index 235a06926..8fb7b7ca9 100644 --- a/Bugzilla/Product.pm +++ b/Bugzilla/Product.pm @@ -147,7 +147,7 @@ sub update { # Don't update the DB if something goes wrong below -> transaction. $dbh->bz_start_transaction(); - my $changes = $self->SUPER::update(@_); + my ($changes, $old_self) = $self->SUPER::update(@_); # We also have to fix votes. my @msgs; # Will store emails to send to voters. @@ -247,7 +247,7 @@ sub update { require Bugzilla::Bug; import Bugzilla::Bug qw(LogActivityEntry); - my $old_settings = $self->new($self->id)->group_controls; + my $old_settings = $old_self->group_controls; my $new_settings = $self->group_controls; my $timestamp = $dbh->selectrow_array('SELECT NOW()'); |