Fixing bulk update order for backlog and kanban
parent
6e96d3ac72
commit
875ba9397f
|
@ -165,7 +165,7 @@ class BacklogController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.F
|
|||
return not res
|
||||
|
||||
prepareBulkUpdateData: (uses) ->
|
||||
return _.map(uses, (x) -> [x.id, x.order])
|
||||
return _.map(uses, (x) -> {"us_id": x.id, "order": x.order})
|
||||
|
||||
resortUserStories: (uses) ->
|
||||
items = []
|
||||
|
|
|
@ -153,7 +153,7 @@ class KanbanController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
|
|||
.then(=> @scope.$broadcast("redraw:wip"))
|
||||
|
||||
prepareBulkUpdateData: (uses) ->
|
||||
return _.map(uses, (x) -> [x.id, x.order])
|
||||
return _.map(uses, (x) -> {"us_id": x.id, "order": x.order})
|
||||
|
||||
resortUserStories: (uses) ->
|
||||
items = []
|
||||
|
|
|
@ -47,7 +47,7 @@ resourceProvider = ($repo, $http, $urls) ->
|
|||
|
||||
service.bulkUpdateOrder = (projectId, data) ->
|
||||
url = $urls.resolve("bulk-update-us-order")
|
||||
params = {projectId: projectId, bulkStories: data}
|
||||
params = {project_id: projectId, bulk_stories: data}
|
||||
return $http.post(url, params)
|
||||
|
||||
service.history = (usId) ->
|
||||
|
|
Loading…
Reference in New Issue