Skip to content

Add date-range filtering to quiz attempts#2775

Open
sazedul-haque wants to merge 1 commit into
4.0.0-devfrom
quiz-date-range-filter
Open

Add date-range filtering to quiz attempts#2775
sazedul-haque wants to merge 1 commit into
4.0.0-devfrom
quiz-date-range-filter

Conversation

@sazedul-haque

Copy link
Copy Markdown
Collaborator

Introduce start_date and end_date parameters to quiz attempts listing and counting. QuizModel::get_quiz_attempts now accepts an optional date range and uses a BETWEEN clause when both dates are provided (falling back to existing single-date filtering otherwise, with sanitization). Updated Quiz_Attempts_List and dashboard template to pass the new parameters, include start/end in hidden inputs and query handling, switch the date picker to range mode, and reset offset when date params are present. This enables filtering quiz attempts by a date range while preserving backward compatibility with the single-date filter.

Introduce start_date and end_date parameters to quiz attempts listing and counting. QuizModel::get_quiz_attempts now accepts an optional date range and uses a BETWEEN clause when both dates are provided (falling back to existing single-date filtering otherwise, with sanitization). Updated Quiz_Attempts_List and dashboard template to pass the new parameters, include start/end in hidden inputs and query handling, switch the date picker to range mode, and reset offset when date params are present. This enables filtering quiz attempts by a date range while preserving backward compatibility with the single-date filter.
@sazedul-haque sazedul-haque added the 4.0.0 Tutor v4.w0w label Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0.0 Tutor v4.w0w

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant