From f8e606b85fe4c2aaef7dfbdd29083e08e69c8416 Mon Sep 17 00:00:00 2001
From: Hendrik Donath <hendrik.donath@gmx.de>
Date: Fri, 23 Oct 2020 10:51:25 +0200
Subject: [PATCH] Changed SQL-Statements so that they work under Standard SQL
not only MySQL
---
locallib.php | 3 ++-
version.php | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/locallib.php b/locallib.php
index 36446a4..660ad25 100644
--- a/locallib.php
+++ b/locallib.php
@@ -736,7 +736,8 @@ function pdfannotator_get_questions($courseid, $context, $questionfilter) {
if ($questionfilter == 1) {
$sql = $sql . ' AND NOT c.solved = 0 ';
}
- $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);
+ $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);
$questions = $DB->get_records_sql($sql, $params);
$seehidden = has_capability('mod/pdfannotator:seehiddencomments', $context);
diff --git a/version.php b/version.php
index be37fbc..180567a 100644
--- a/version.php
+++ b/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'mod_pdfannotator'; // Full name of the plugin (used for diagnostics).
-$plugin->version = 2020102300; // The current module version (Date: YYYYMMDDXX).
+$plugin->version = 2020102301; // The current module version (Date: YYYYMMDDXX).
$plugin->release = 'PDF Annotator v1.4 release 4';
$plugin->requires = 2016112900; // Requires this Moodle version.
--
GitLab