Fix move stories from backlog to current sprint button

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

View File

@ -653,7 +653,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()