From 65a64e34a4e2d6c93a0258a26f158b80c9f5d5d0 Mon Sep 17 00:00:00 2001 From: Miguel Gonzalez Date: Wed, 14 Mar 2018 14:11:33 +0100 Subject: [PATCH 1/2] Send statusId to bulkUpdateKanbanOrder endpoint --- app/coffee/modules/kanban/main.coffee | 4 ++-- app/coffee/modules/resources/userstories.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/coffee/modules/kanban/main.coffee b/app/coffee/modules/kanban/main.coffee index bbeb79c7..697f7ad8 100644 --- a/app/coffee/modules/kanban/main.coffee +++ b/app/coffee/modules/kanban/main.coffee @@ -302,13 +302,13 @@ class KanbanController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi moveUs: (ctx, usList, newStatusId, index) -> @.cleanSelectedUss() - + usList = _.map usList, (us) => return @kanbanUserstoriesService.getUsModel(us.id) data = @kanbanUserstoriesService.move(usList, newStatusId, index) - promise = @rs.userstories.bulkUpdateKanbanOrder(@scope.projectId, data.bulkOrders) + promise = @rs.userstories.bulkUpdateKanbanOrder(@scope.projectId, newStatusId, data.bulkOrders) promise.then () => # saving diff --git a/app/coffee/modules/resources/userstories.coffee b/app/coffee/modules/resources/userstories.coffee index a541c739..5e6ed6df 100644 --- a/app/coffee/modules/resources/userstories.coffee +++ b/app/coffee/modules/resources/userstories.coffee @@ -107,9 +107,9 @@ resourceProvider = ($repo, $http, $urls, $storage, $q) -> params = {project_id: projectId, milestone_id: milestoneId, bulk_stories: data} return $http.post(url, params) - service.bulkUpdateKanbanOrder = (projectId, data) -> + service.bulkUpdateKanbanOrder = (projectId, statusId, data) -> url = $urls.resolve("bulk-update-us-kanban-order") - params = {project_id: projectId, bulk_stories: data} + params = {project_id: projectId, status_id: statusId, bulk_stories: data} return $http.post(url, params) service.listValues = (projectId, type) -> From e21c6e5021105eec4549650f007399c7d86cea8a Mon Sep 17 00:00:00 2001 From: Miguel Gonzalez Date: Thu, 15 Mar 2018 15:27:18 +0100 Subject: [PATCH 2/2] Update change log --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15776b1d..3933dac6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ -# Changelog # +# Changelog + +## 3.2.2 (2018-03-15) + +### Misc + +- Minor bug fixes. ## 3.2.1 (2018-03-08)