diff options
author | Simon Rettberg | 2020-07-22 17:15:10 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-07-30 13:32:15 +0200 |
commit | 8bfd6122b07b4ca2abbbcf13a4498c856d24ab64 (patch) | |
tree | ced0d2a95b936052dd9fca10b7ec33e91c2ad544 /modules-available/exams/page.inc.php | |
parent | [remoteaccess] Fix: "active" flag was not honored in getconfig hook (diff) | |
download | slx-admin-8bfd6122b07b4ca2abbbcf13a4498c856d24ab64.tar.gz slx-admin-8bfd6122b07b4ca2abbbcf13a4498c856d24ab64.tar.xz slx-admin-8bfd6122b07b4ca2abbbcf13a4498c856d24ab64.zip |
[exams] More sanity checks regarding date/time and locations
Implausible start/end time, or mismatch between defined exam interval
and interval of selected lecture will now be reported.
Also, if the list of selected locations contains a location that is not
also assiged to the selected lecture, a warning will be displayed. This
only triggers if the lecture is restricted to certain locations
(exclusive mode, aka "islocationprivate" column.
Diffstat (limited to 'modules-available/exams/page.inc.php')
-rw-r--r-- | modules-available/exams/page.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/exams/page.inc.php b/modules-available/exams/page.inc.php index aec13c32..b19c156e 100644 --- a/modules-available/exams/page.inc.php +++ b/modules-available/exams/page.inc.php @@ -79,7 +79,7 @@ class Page_Exams extends Page protected function readLectures() { $tmp = Database::simpleQuery( - "SELECT lectureid, Group_Concat(locationid) as lids, displayname, starttime, endtime, isenabled, firstname, lastname, email " . + "SELECT lectureid, Group_Concat(locationid) as lids, islocationprivate, displayname, starttime, endtime, isenabled, firstname, lastname, email " . "FROM sat.lecture " . "INNER JOIN sat.user ON (user.userid = lecture.ownerid) " . "NATURAL LEFT JOIN sat.lecture_x_location " . |