Skip to content

Commit

Permalink
Fix transferred? Impl to handle new SchoolYear (#1172)
Browse files Browse the repository at this point in the history
  • Loading branch information
pskl authored Oct 23, 2024
1 parent a4eb227 commit 54b7e40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/student.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ def transferred?
end

def multiple_mefs?
classes.joins(:mef).select(:"mefs.id").distinct.count > 1
classes.current.joins(:mef).select(:"mefs.id").distinct.count > 1
end

def multiple_establishments?
classes.select(:establishment_id).distinct.count > 1
classes.current.select(:establishment_id).distinct.count > 1
end

def any_classes_in_establishment?(establishment)
Expand Down

0 comments on commit 54b7e40

Please sign in to comment.