Commit 1b3c4ae7 authored by Jiri Strojil's avatar Jiri Strojil

Building of missions adjusted

parent 02ebb23e
......@@ -71,8 +71,8 @@ class SemesterProcessVolunteer < ApplicationRecord
def build_missions(semester)
new_missions = volunteer.assignments.active_between(semester.begin, semester.end) +
volunteer.group_assignments.active_between(semester.begin, semester.end)
new_missions = volunteer.assignments.no_end.start_before(semester.begin) +
semester_process_volunteer_missions << do |mission| mission)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment