diff options
author | George Andrinopoulos <geoandri@gmail.com> | 2017-03-09 18:43:07 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-03-09 18:43:07 +0000 |
commit | dd309469997558541debd36aa7a2ea7e8cbece5d (patch) | |
tree | f7c5789bca40b0299e43a4efeaa2e6bfe4a199c1 /app/views/shared/milestones | |
parent | f1e76a6fa059ae12558014c6858c078586fd2b75 (diff) | |
download | gitlab-ce-dd309469997558541debd36aa7a2ea7e8cbece5d.tar.gz |
Order milestone issues by position ascending in api
Diffstat (limited to 'app/views/shared/milestones')
-rw-r--r-- | app/views/shared/milestones/_issuables.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/milestones/_issuables.html.haml b/app/views/shared/milestones/_issuables.html.haml index a93cbd1041f..8af3bd597c5 100644 --- a/app/views/shared/milestones/_issuables.html.haml +++ b/app/views/shared/milestones/_issuables.html.haml @@ -13,6 +13,6 @@ - class_prefix = dom_class(issuables).pluralize %ul{ class: "well-list #{class_prefix}-sortable-list", id: "#{class_prefix}-list-#{id}", "data-state" => id } = render partial: 'shared/milestones/issuable', - collection: issuables.sort_by(&:position), + collection: issuables.order_position_asc, as: :issuable, locals: { show_project_name: show_project_name, show_full_project_name: show_full_project_name } |