summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Object.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-09-29 01:27:24 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-09-29 01:27:24 +0200
commitf517974618ba835014e9d2a3565109af469f5d34 (patch)
treee3b14688f85d7647edc745c5a81828f9d7bb933e /Bugzilla/Object.pm
parent02f040862148243081d016cb33161f9033bab95c (diff)
downloadbugzilla-f517974618ba835014e9d2a3565109af469f5d34.tar.gz
bugzilla-f517974618ba835014e9d2a3565109af469f5d34.tar.xz
Bug 686786: Decreasing votestoconfirm in editproducts.cgi crashes Bugzilla
r/a=mkanat
Diffstat (limited to 'Bugzilla/Object.pm')
-rw-r--r--Bugzilla/Object.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Object.pm b/Bugzilla/Object.pm
index 1cad3e829..29a6415b9 100644
--- a/Bugzilla/Object.pm
+++ b/Bugzilla/Object.pm
@@ -441,6 +441,8 @@ sub audit_log {
# During update, it's the actual %changes hash produced by update().
foreach my $field (keys %$changes) {
+ # Skip private changes.
+ next if $field =~ /^_/;
my ($from, $to) = @{ $changes->{$field} };
$sth->execute($user_id, $class, $self->id, $field, $from, $to);
}