Skip to content

Commit

Permalink
Addresses #107 though I'm not sure this is correct. Assignments with …
Browse files Browse the repository at this point in the history
…only proposed hours entered should probably be reassignable. And deleteable? Maybe this is actually okay.
  • Loading branch information
fermion committed Jun 22, 2013
1 parent 835c816 commit cc5dd89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/models/assignment.js.coffee
Expand Up @@ -27,7 +27,7 @@ class window.StaffPlan.Models.Assignment extends StaffPlan.Model

isDeletable: ->
0 is @work_weeks.reduce (total, element) ->
total += parseInt(element.get("actual_hours") or 0, 10) + parseInt(element.get("estimated_hours") or 0, 10)
total += parseInt(element.get("actual_hours") or 0, 10)
total
, 0

Expand Down

0 comments on commit cc5dd89

Please sign in to comment.