From: lpsolit%gmail.com <> Date: Tue, 27 Oct 2009 23:08:40 +0000 (+0000) Subject: Bug 524814: Flag requests are resent all the time, even when flags are not updated... X-Git-Tag: bugzilla-3.5.1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c51e34ce8c15bc53672bd58083196e6b2f2c254f;p=thirdparty%2Fbugzilla.git Bug 524814: Flag requests are resent all the time, even when flags are not updated - Patch by Frédéric Buclin a=LpSolit --- diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm index 6efe0b431b..8315a3ef64 100644 --- a/Bugzilla/Flag.pm +++ b/Bugzilla/Flag.pm @@ -507,8 +507,10 @@ sub update_flags { $class->notify($new_flag, undef, $self); } else { - $new_flag->update($timestamp); - $class->notify($new_flag, $old_flags{$new_flag->id}, $self); + my $changes = $new_flag->update($timestamp); + if (scalar(keys %$changes)) { + $class->notify($new_flag, $old_flags{$new_flag->id}, $self); + } delete $old_flags{$new_flag->id}; } }