aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-10-27 23:08:40 +0000
committerlpsolit%gmail.com <>2009-10-27 23:08:40 +0000
commitc51e34ce8c15bc53672bd58083196e6b2f2c254f (patch)
treea6b2a33ff2e206f12aac7ff42c5c99dbf385e8b2
parentBug 510246: makedocs.pl should not compile POD for modules in lib/ - Patch by... (diff)
downloadbugzilla-c51e34ce8c15bc53672bd58083196e6b2f2c254f.tar.gz
bugzilla-c51e34ce8c15bc53672bd58083196e6b2f2c254f.tar.bz2
bugzilla-c51e34ce8c15bc53672bd58083196e6b2f2c254f.zip
Bug 524814: Flag requests are resent all the time, even when flags are not updated - Patch by Frédéric Buclin <LpSolit@gmail.com> a=LpSolit
-rw-r--r--Bugzilla/Flag.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm
index 6efe0b431..8315a3ef6 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};
}
}