Partial fix #1714 taskboard order

stable
Juanfran 2014-11-28 14:37:37 +01:00
parent 6362a711aa
commit 15dea86392
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin)
loadTasks: ->
return @rs.tasks.list(@scope.projectId, @scope.sprintId).then (tasks) =>
@scope.tasks = tasks
@scope.tasks = _.sortBy(tasks, 'taskboard_order')
@scope.usTasks = {}
# Iterate over all userstories and
@ -194,7 +194,7 @@ class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin)
task.user_story = usId
task.status = statusId
task.order = order
task.taskboard_order = order
promise = @repo.save(task)
promise.then =>