From 03f7b9737ce4315fdb037ed10ea38e133da2aef9 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 30 Sep 2015 00:40:23 +0800 Subject: Bug 1204623 - timestamp on flags should reference the latest updated activity, not the first --- extensions/BugModal/lib/ActivityStream.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/BugModal') diff --git a/extensions/BugModal/lib/ActivityStream.pm b/extensions/BugModal/lib/ActivityStream.pm index f950bea1c..0bd88e623 100644 --- a/extensions/BugModal/lib/ActivityStream.pm +++ b/extensions/BugModal/lib/ActivityStream.pm @@ -103,7 +103,7 @@ sub find_activity_id_for_flag { # we don't have an object_id to match on if (!exists $self->{activity_cache}->{flag}->{$flag->id}) { - foreach my $change_set (@$stream) { + foreach my $change_set (reverse @$stream) { foreach my $activity (@{ $change_set->{activity} }) { # match by user, timestamp, and flag-type name next unless -- cgit v1.2.3-24-g4f1b