summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-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};
}
}