Skip to content

Commit f8e606b

Browse files
Hendrik DonathFriederike-cil
authored andcommitted
Changed SQL-Statements so that they work under Standard SQL not only MySQL
1 parent 60458aa commit f8e606b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

locallib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,8 @@ function pdfannotator_get_questions($courseid, $context, $questionfilter) {
736736
if ($questionfilter == 1) {
737737
$sql = $sql . ' AND NOT c.solved = 0 ';
738738
}
739-
$sql = $sql . "GROUP BY a.id, p.name, p.usevotes, cm.id, c.id, a.page, a.pdfannotatorid, c.content, c.userid, c.visibility, c.timecreated, c.isdeleted, c.ishidden"; $params = array_merge([$courseid], $inparams);
739+
$sql = $sql . "GROUP BY a.id, p.name, p.usevotes, cm.id, c.id, a.page, a.pdfannotatorid, c.content, c.userid, c.visibility, c.timecreated, c.isdeleted, c.ishidden";
740+
$params = array_merge([$courseid], $inparams);
740741
$questions = $DB->get_records_sql($sql, $params);
741742

742743
$seehidden = has_capability('mod/pdfannotator:seehiddencomments', $context);

version.php

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

2727
$plugin->component = 'mod_pdfannotator'; // Full name of the plugin (used for diagnostics).
28-
$plugin->version = 2020102300; // The current module version (Date: YYYYMMDDXX).
28+
$plugin->version = 2020102301; // The current module version (Date: YYYYMMDDXX).
2929
$plugin->release = 'PDF Annotator v1.4 release 4';
3030
$plugin->requires = 2016112900; // Requires this Moodle version.

0 commit comments

Comments
 (0)