prevent closed sprints dissapear when the user drag and US to the current sprint

stable
Juanfran 2015-03-16 14:43:31 +01:00
parent ed59aa46e6
commit 54deeefd18
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ class BacklogController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.F
@scope.sprints = sprints @scope.sprints = sprints
@scope.openSprints = _.filter(sprints, (sprint) => not sprint.closed).reverse() @scope.openSprints = _.filter(sprints, (sprint) => not sprint.closed).reverse()
@scope.closedSprints = [] @scope.closedSprints = [] if !@scope.closedSprints
@scope.sprintsCounter = sprints.length @scope.sprintsCounter = sprints.length
@scope.sprintsById = groupBy(sprints, (x) -> x.id) @scope.sprintsById = groupBy(sprints, (x) -> x.id)