summaryrefslogtreecommitdiff
path: root/app/views/shared
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-03-09 18:43:07 +0000
committerRémy Coutable <remy@rymai.me>2017-03-09 18:43:07 +0000
commit130fd255bc0735d4175f2db2770a9092882fa3a4 (patch)
treef7c5789bca40b0299e43a4efeaa2e6bfe4a199c1 /app/views/shared
parentf1e76a6fa059ae12558014c6858c078586fd2b75 (diff)
parentdd309469997558541debd36aa7a2ea7e8cbece5d (diff)
downloadgitlab-ce-130fd255bc0735d4175f2db2770a9092882fa3a4.tar.gz
Merge branch '28874-fix-milestone-issues-position-order-in-api' into 'master'
Order milestone issues by position ascending in api Closes #28847 See merge request !9635
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/milestones/_issuables.html.haml2
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 }