]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1639902 - Fix `Use of uninitialized value in string eq at /app/Bugzilla/Bug.pm...
authordklawren <dklawren@users.noreply.github.com>
Mon, 25 May 2020 20:53:06 +0000 (16:53 -0400)
committerGitHub <noreply@github.com>
Mon, 25 May 2020 20:53:06 +0000 (16:53 -0400)
Bugzilla/Bug.pm

index e18d6da1254ef0dcbb9b9bdedb928b283942e7fe..77804bee08ea9fdc0804e20d52e07df76191f3d3 100644 (file)
@@ -4671,7 +4671,7 @@ sub GetBugActivity {
     my $last_change = @$changes[-1] || {};
 
     # Suppress any mid-air collision or duplicated change
-    if (( $when eq $operation->{'when'}
+    if (( (exists $operation->{'when'} && $when eq $operation->{'when'})
       && $fieldname eq $last_change->{'fieldname'}
       && $removed eq $last_change->{'removed'}
       && $added eq $last_change->{'added'}