summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/lib
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-09-29 18:40:23 +0200
committerByron Jones <glob@mozilla.com>2015-09-29 18:40:23 +0200
commit03f7b9737ce4315fdb037ed10ea38e133da2aef9 (patch)
tree707ce2eb6ac68c0f0f2ca93c78ffc1f9d018ab63 /extensions/BugModal/lib
parent05fed61671067cb6a750d41909ccb5692ba43808 (diff)
downloadbugzilla-03f7b9737ce4315fdb037ed10ea38e133da2aef9.tar.gz
bugzilla-03f7b9737ce4315fdb037ed10ea38e133da2aef9.tar.xz
Bug 1204623 - timestamp on flags should reference the latest updated activity, not the first
Diffstat (limited to 'extensions/BugModal/lib')
-rw-r--r--extensions/BugModal/lib/ActivityStream.pm2
1 files changed, 1 insertions, 1 deletions
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