Fix issue #1015: Now show the name on us detail points

stable
Jesús Espino 2014-09-17 12:26:26 +02:00
parent 55de59cd53
commit cffdcaf0b1
1 changed files with 3 additions and 3 deletions

View File

@ -289,9 +289,9 @@ UsStatusDetailDirective = () ->
status = $scope.statusById[us.status]
rolePoints = _.clone(_.filter($scope.project.roles, "computable"), true)
_.map rolePoints, (v, k) ->
val = $scope.pointsById[us.points[v.id]].value
val = "?" if not val?
v.points = val
name = $scope.pointsById[us.points[v.id]].name
name = "?" if not name?
v.points = name
totalTasks = $scope.tasks.length
totalClosedTasks = _.filter($scope.tasks, (task) => $scope.taskStatusById[task.status].is_closed).length