From f6b4d95674ca375237c9a43b6182c0322447a284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Hermida?= Date: Wed, 8 Aug 2018 13:18:07 +0200 Subject: [PATCH] Add status to generic form --- app/coffee/modules/common/lightboxes.coffee | 2 +- app/coffee/modules/kanban/main.coffee | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/coffee/modules/common/lightboxes.coffee b/app/coffee/modules/common/lightboxes.coffee index 055d172b..e066eb26 100644 --- a/app/coffee/modules/common/lightboxes.coffee +++ b/app/coffee/modules/common/lightboxes.coffee @@ -785,7 +785,7 @@ $confirm, $q, attachmentsService, $template, $compile) -> description: "" tags: [] points : {} - status: data.project.default_us_status + status: if data.statusId then data.statusId else data.project.default_us_status is_archived: false } } diff --git a/app/coffee/modules/kanban/main.coffee b/app/coffee/modules/kanban/main.coffee index 30f36254..564f58dc 100644 --- a/app/coffee/modules/kanban/main.coffee +++ b/app/coffee/modules/kanban/main.coffee @@ -167,7 +167,8 @@ class KanbanController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi when "standard" then @rootscope.$broadcast("genericform:new", { 'objType': 'us', - 'project': @scope.project + 'project': @scope.project, + 'statusId': statusId }) when "bulk" then @rootscope.$broadcast("usform:bulk", @scope.projectId, statusId)