[Backport] Fix move stories from backlog to current sprint button

stable
David Barragán Merino 2017-03-15 18:53:29 +01:00
parent f23da1b140
commit b0abdae83a
1 changed files with 6 additions and 1 deletions

View File

@ -652,7 +652,12 @@ BacklogDirective = ($repo, $rootscope, $translate, $rs) ->
# Update the total of points
sprint.total_points += totalExtraPoints
$rs.userstories.bulkUpdateMilestone($scope.project.id, $scope.sprints[0].id, selectedUss).then =>
data = _.map selectedUss, (us) ->
return {
us_id: us.id
order: us.sprint_order
}
$rs.userstories.bulkUpdateMilestone($scope.project.id, $scope.sprints[0].id, data).then =>
$ctrl.loadSprints()
$ctrl.loadProjectStats()
$ctrl.toggleVelocityForecasting()