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

End_date Must be Before Start_date #436

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alocke8181
Copy link
Contributor

Closes #435

The end date for assignment generation must now be before the start date. I caught this bug while testing for PR #433. It was possible to generate an assignment with an end date before the start date. The assignments model now validates that the end date is greater than the start date, and generate_rotation in the controller also checks this. If the end date is before the start date, it redirects back and flashes an error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

End Date can be Before Start Date
1 participant