From 15dea86392554be18f060b6d7977a82f2630a0c4 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Fri, 28 Nov 2014 14:37:37 +0100 Subject: [PATCH] Partial fix #1714 taskboard order --- app/coffee/modules/taskboard/main.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/coffee/modules/taskboard/main.coffee b/app/coffee/modules/taskboard/main.coffee index f1b46ccc..7d0cf5d3 100644 --- a/app/coffee/modules/taskboard/main.coffee +++ b/app/coffee/modules/taskboard/main.coffee @@ -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 =>