Skip to content

Commit

Permalink
Merge pull request #638 from ChicagoWorldcon/PLAN-719-fix-diff-with-c…
Browse files Browse the repository at this point in the history
…urrent

fix for missing session test
  • Loading branch information
balen authored Aug 16, 2022
2 parents 42713aa + a54464c commit 402b18f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/controllers/reports/schedule_reports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@ def check_assignments_changed(changes:, state_change_sessions:)
next if state_change_sessions.include?(changed_assignment.session_id || changed_assignment.published_session_id)

session = changed_assignment.session
session_id = change[:object][:published_session_id] || change[:object][:session_id]
session ||= Session.find session_id if Session.exists? session_id
if !session && change[:object]
session_id = change[:object][:published_session_id] || change[:object][:session_id]
session ||= Session.find session_id if Session.exists? session_id
end
next unless session

person ||= changed_assignment.person
Expand Down

0 comments on commit 402b18f

Please sign in to comment.