Skip to content

Commit 73e8305

Browse files
committed
Fix bug on report essay displaying all student answer records
1 parent 1edd38d commit 73e8305

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

src/classes/PersistCtrl.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,9 @@ public function reportQuizEssayAnswers($courseId, $cmId, $groupId, $studentId, $
725725
left join {groups_members} t6_1 on t6.id = t6_1.userid
726726
left join {groups} t6_2 on t6_1.groupid = t6_2.id
727727
where t2_1.name = 'quiz' and t2.id = :cmid and t1.id = :courseid and $groupStmt and $studentStmt and $onlyLastTryStmt
728+
and t5_2.attemptstepid = (select max(sub_t5_1.id) from {question_attempt_steps} sub_t5_1
729+
inner join {question_attempt_step_data} sub_t5_2 on sub_t5_1.id = sub_t5_2.attemptstepid and sub_t5_2.name = 'answer'
730+
where t5.id = sub_t5_1.questionattemptid)
728731
order by last_name asc, first_name asc, attempt desc, t5_1.sequencenumber asc";
729732

730733
$tmp = $this->getRecordsSQL($query, $vars);

src/react/build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/react/build/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "recit_dashboard",
3-
"version": "2.0.1-stable",
3+
"version": "2.0.2-stable",
44
"description": "RÉCIT Dashboard",
55
"main": "index.js",
66
"scripts": {

src/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
defined('MOODLE_INTERNAL') || die();
2525

2626
$plugin->version = 2025013001; // The current module version (Date: YYYYMMDDXX)
27-
$plugin->release = 'v2.0.1-stable';
27+
$plugin->release = 'v2.0.2-stable';
2828
$plugin->supported = [405, 405]; // Moodle 3.9.x, 3.10.x and 3.11.x are supported.
2929
$plugin->requires = 2024071200.00; // Moodle 4.5.0
3030
$plugin->component = 'local_recitdashboard'; // Full name of the plugin (used for diagnostics)

0 commit comments

Comments
 (0)