Add status to generic form

stable
Álex Hermida 2018-08-08 13:18:07 +02:00 committed by Alex Hermida
parent 134389a22c
commit f6b4d95674
2 changed files with 3 additions and 2 deletions

View File

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

View File

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