Skip to content

Commit

Permalink
Merge pull request #532 from SAASVUUV/main
Browse files Browse the repository at this point in the history
#479: fixed the enrollment_hold problem
  • Loading branch information
leomurta authored Feb 6, 2025
2 parents 9fc2bda + eea9b8e commit 0247e5b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/models/enrollment_hold.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ def validate_dates
errors.add(:base, :before_admission_date)
end
dismissal = enrollment.dismissal
if dismissal.present? && self.end_date > dismissal.date
errors.add(:base, :after_dismissal_date)
if dismissal.present? && dismissal.dismissal_reason.thesis_judgement == DismissalReason::APPROVED
if self.end_date > dismissal.date
errors.add(:base, :after_dismissal_date)
end
end
end

Expand Down

0 comments on commit 0247e5b

Please sign in to comment.