]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1556320 - Mismatch between changed summary and current summary
authorKohei Yoshino <kohei.yoshino@gmail.com>
Tue, 4 Jun 2019 18:42:59 +0000 (14:42 -0400)
committerGitHub <noreply@github.com>
Tue, 4 Jun 2019 18:42:59 +0000 (14:42 -0400)
Bugzilla/Bug.pm

index 88cf7a30745d6a72142b6744f47cf8a996239b0d..7c486fe1d9efb0d0eb37a76d1210850c63dc84b9 100644 (file)
@@ -4535,7 +4535,6 @@ sub GetBugActivity {
     INNER JOIN profiles
             ON profiles.userid = bugs_activity.who
          WHERE bugs_activity.bug_id = ?
-           AND bugs_activity.removed != bugs_activity.added
                $datepart
                $attachpart
                $suppwhere ";
@@ -4591,12 +4590,13 @@ sub GetBugActivity {
     my $activity_visible = 1;
     my $last_change = @$changes[-1] || {};
 
-    # Suppress any mid-air collision
-    if ( $when eq $operation->{'when'}
+    # Suppress any mid-air collision or duplicated change
+    if (( $when eq $operation->{'when'}
       && $fieldname eq $last_change->{'fieldname'}
       && $removed eq $last_change->{'removed'}
       && $added eq $last_change->{'added'}
       && $attachid eq $last_change->{'attachid'})
+      || $removed eq $added )
     {
       next;
     }