]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 524814: Flag requests are resent all the time, even when flags are not updated...
authorlpsolit%gmail.com <>
Tue, 27 Oct 2009 23:08:40 +0000 (23:08 +0000)
committerlpsolit%gmail.com <>
Tue, 27 Oct 2009 23:08:40 +0000 (23:08 +0000)
Bugzilla/Flag.pm

index 6efe0b431b8d21379dc9408d0cee3d248370826a..8315a3ef6425d158696f9085e6437cc1c4c8b9bd 100644 (file)
@@ -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};
         }
     }