Fixing bulk update order for backlog and kanban

stable
Alejandro Alonso 2014-08-08 10:34:14 +02:00
parent 6e96d3ac72
commit 875ba9397f
3 changed files with 3 additions and 3 deletions

View File

@ -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 = []

View File

@ -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 = []

View File

@ -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) ->