[Backport] Fixing tasks bulk creation

stable
Alejandro Alonso 2016-12-01 11:36:37 +01:00
parent cf22d6d7b8
commit 2d7597bbaf
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ CreateBulkTasksDirective = ($repo, $rs, $rootscope, $loading, lightboxService, $
promise = $rs.tasks.bulkCreate(projectId, sprintId, usId, data)
promise.then (result) ->
result = _.map(result, (x) => $model.make_model('userstories', x))
result = _.map(result, (x) => $model.make_model('tasks', x))
currentLoading.finish()
$rootscope.$broadcast("taskform:bulk:success", result)
lightboxService.close($el)