-
Notifications
You must be signed in to change notification settings - Fork 512
add-date-filter-to-pending.php #6526
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
add-date-filter-to-pending.php #6526
Conversation
main/inc/ajax/model.ajax.php
Outdated
@@ -6,6 +6,10 @@ | |||
|
|||
require_once __DIR__.'/../global.inc.php'; | |||
|
|||
// --- FILTRES DATE --- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments should be in english :
date filters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
main/inc/ajax/model.ajax.php
Outdated
if ((false === api_is_teacher()) && (false === api_is_session_admin())) { | ||
exit; | ||
} | ||
|
||
$courseId = $_REQUEST['course_id'] ?? 0; | ||
$exerciseId = $_REQUEST['exercise_id'] ?? 0; | ||
$status = $_REQUEST['status'] ?? 0; | ||
$questionType = $_REQUEST['questionType'] ?? 0; | ||
$showAttemptsInSessions = $_REQUEST['showAttemptsInSessions'] ? true : false; | ||
if (isset($_GET['filter_by_user']) && !empty($_GET['filter_by_user'])) { | ||
$filter_user = (int) $_GET['filter_by_user']; | ||
if (empty($whereCondition)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an indentation problem.
There should be 8 spaces before each line in the case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
The code works but there are a few things to be reviewed to be able to accept this PR. |
@yverhenne good work, the functionnality works fine, but I let you review those comments before reviewing this PR again. Best regard |
allows filtering by start and end date, the attempts waiting for correction on the pending.php page