Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lecture edit page if active term is not set #683

Merged
merged 9 commits into from
Aug 21, 2024
1 change: 1 addition & 0 deletions app/models/lecture.rb
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ def speakers
end

def older_than?(timespan)
return false unless Term.active
return true unless term

term.begin_date <= Term.active.begin_date - timespan
Expand Down
Loading