diff options
author | Byron Jones <glob@mozilla.com> | 2015-06-15 10:24:58 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-06-15 10:24:58 +0200 |
commit | 53a49f84b521ea0682ec46fee0d040d3ed312189 (patch) | |
tree | de015fe43a8312d880da81159f4c239348ef41be /extensions/BugModal/lib | |
parent | f0e2cd1ec8588798debddd93b229c5876ed8eb34 (diff) | |
download | bugzilla-53a49f84b521ea0682ec46fee0d040d3ed312189.tar.gz bugzilla-53a49f84b521ea0682ec46fee0d040d3ed312189.tar.xz |
Bug 1174644: fields are not sorted when shown on bug-modal
Diffstat (limited to 'extensions/BugModal/lib')
-rw-r--r-- | extensions/BugModal/lib/ActivityStream.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/extensions/BugModal/lib/ActivityStream.pm b/extensions/BugModal/lib/ActivityStream.pm index a69790044..58ac25472 100644 --- a/extensions/BugModal/lib/ActivityStream.pm +++ b/extensions/BugModal/lib/ActivityStream.pm @@ -58,10 +58,12 @@ sub activity_stream { $change_set->{id} = $change_set->{comment} ? 'c' . $change_set->{comment}->count : 'a' . ($change_set->{time} - $base_time) . '_' . $change_set->{user_id}; - $change_set->{activity} = [ - sort { $a->{fieldname} cmp $b->{fieldname} } - @{ $change_set->{activity} } - ]; + foreach my $activity (@{ $change_set->{activity} }) { + $activity->{changes} = [ + sort { $a->{fieldname} cmp $b->{fieldname} } + @{ $activity->{changes} } + ]; + } } my $order = Bugzilla->user->setting('comment_sort_order'); if ($order eq 'oldest_to_newest') { |