From: Gervase Markham Date: Mon, 18 Jul 2011 15:56:39 +0000 (-0400) Subject: Bug 670906 - Make it so delta_ts is only updated when there are changes. Fix regressi... X-Git-Tag: bugzilla-4.1.3~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=706d83ffeb980a6444573327312b4056b1e84ac4;p=thirdparty%2Fbugzilla.git Bug 670906 - Make it so delta_ts is only updated when there are changes. Fix regression from bug 620827. r=timello, a=lpsolit. --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 369c6669d4..2ab4a6bffa 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -961,7 +961,7 @@ sub update { $_->insert_create_data($_) foreach @$added_see; # If any changes were found, record it in the activity log - if (scalar $removed_see || scalar $added_see) { + if (scalar @$removed_see || scalar @$added_see) { $changes->{see_also} = [join(', ', map { $_->name } @$removed_see), join(', ', map { $_->name } @$added_see)]; }