Skip to content

Commit

Permalink
Fix class enrollment notification to send email on approval of class …
Browse files Browse the repository at this point in the history
…without grades
  • Loading branch information
JoaoFelipe committed Jan 10, 2024
1 parent e6662d0 commit 614a2af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/class_enrollment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ def disapproved_by_absence_for_situation
end

def notify_student_and_advisor
return if grade.nil?
new_record = id_changed? || id_previously_changed?
return if new_record
return if !(
saved_change_to_grade? ||
saved_change_to_situation? ||
Expand Down

0 comments on commit 614a2af

Please sign in to comment.