From c51e34ce8c15bc53672bd58083196e6b2f2c254f Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 27 Oct 2009 23:08:40 +0000 Subject: [PATCH] =?utf8?q?Bug=20524814:=20Flag=20requests=20are=20resent?= =?utf8?q?=20all=20the=20time,=20even=20when=20flags=20are=20not=20updated?= =?utf8?q?=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/Flag.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}; } } -- 2.47.2