Use order attr to order US statuses in Kanban page

stable
David Barragán Merino 2014-07-31 12:47:55 +02:00
parent d167ab533a
commit a214485b9f
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ class KanbanController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
@scope.points = _.sortBy(project.points, "order") @scope.points = _.sortBy(project.points, "order")
@scope.pointsById = groupBy(project.points, (x) -> x.id) @scope.pointsById = groupBy(project.points, (x) -> x.id)
@scope.usStatusById = groupBy(project.us_statuses, (x) -> x.id) @scope.usStatusById = groupBy(project.us_statuses, (x) -> x.id)
@scope.usStatusList = _.sortBy(project.us_statuses, "id") @scope.usStatusList = _.sortBy(project.us_statuses, "order")
return project return project
loadInitialData: -> loadInitialData: ->