Skip to content

Commit

Permalink
Fix exercises reports in model.ajax.php - refs BT#17654 #3479
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Aug 28, 2020
1 parent 609c9a9 commit b563b14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions main/inc/ajax/model.ajax.php
Expand Up @@ -670,6 +670,11 @@ function getWhereClause($col, $oper, $val)
}

$startDate = Database::escape_string($_REQUEST['start_date']);

if (!empty($whereCondition)) {
$whereCondition = " AND $whereCondition";
}

$whereCondition .= " AND exe_date > '$startDate' AND te.status = '' ";
$count = ExerciseLib::get_count_exam_results(
$exerciseId,
Expand Down
2 changes: 1 addition & 1 deletion main/inc/lib/exercise.lib.php
Expand Up @@ -2211,7 +2211,7 @@ public static function get_exam_results_data(
te.c_id = $course_id $session_id_and AND
ce.active <> -1 AND
ce.c_id = $course_id
$exercise_where AND
$exercise_where
$extra_where_conditions
";

Expand Down

1 comment on commit b563b14

@pmchacin
Copy link

Choose a reason for hiding this comment

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

Solucionó mi problema de no visualización de los resultados. Gracias.

Please sign in to comment.