Skip to content

fix: pass year and month parameters to class events for attendance#1035

Merged
carddev81 merged 2 commits intomainfrom
CK-7vn/id-502
Nov 11, 2025
Merged

fix: pass year and month parameters to class events for attendance#1035
carddev81 merged 2 commits intomainfrom
CK-7vn/id-502

Conversation

@CK-7vn
Copy link
Copy Markdown
Member

@CK-7vn CK-7vn commented Nov 3, 2025

Description of the change

After saving or cancelling the taking of attendance the application would redirect the user to the current month, not the month that they were on. This PR makes sure that the month and year are passed appropriately inso that we make sure the user lands on the appropriate month upon their attendance action.

Additional context

For context: The ClassEvents component initialized the currentMonth state to the current date and never reads the query parameters. When EventAttendance navigated the params were ignored.

@CK-7vn CK-7vn requested a review from a team as a code owner November 3, 2025 19:55
@CK-7vn CK-7vn requested review from calisio and removed request for a team November 3, 2025 19:55
Copy link
Copy Markdown
Contributor

@calisio calisio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one small fix - if you click on the cancel button then it doesn't take you back to the right month. Besides that, looks and works great.

@CK-7vn
Copy link
Copy Markdown
Member Author

CK-7vn commented Nov 6, 2025

one small fix - if you click on the cancel button then it doesn't take you back to the right month. Besides that, looks and works great.

I could have swore I made sure to take care of cancel :@ Must have just thought about it, and not done it. I'll take care of it right now. Thank you!

@carddev81 carddev81 self-requested a review November 11, 2025 15:10
Copy link
Copy Markdown
Contributor

@carddev81 carddev81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested great and looks good!!

@carddev81 carddev81 merged commit 2a540b9 into main Nov 11, 2025
8 checks passed
@carddev81 carddev81 deleted the CK-7vn/id-502 branch November 11, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants