app/models/ecm/courses/course.rb in ecm_courses2-1.1.3 vs app/models/ecm/courses/course.rb in ecm_courses2-1.1.4
- old
+ new
@@ -47,9 +47,10 @@
private
def set_seats_defaults
self.seats ||= 0
self.free_seats ||= 0
+ self.used_seats ||= 0
end
def calculate_free_seats
self.free_seats = seats - used_seats
end
\ No newline at end of file