summaryrefslogtreecommitdiffstats
path: root/modules-available/exams/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2020-07-22 17:15:10 +0200
committerSimon Rettberg2020-07-22 17:15:10 +0200
commit67af92fc19899b1103caa563e00dc652a260baf1 (patch)
tree144d6f65345a3e816c9a94238dbfd416002041e9 /modules-available/exams/page.inc.php
parent[remoteaccess] Fix: "active" flag was not honored in getconfig hook (diff)
downloadslx-admin-67af92fc19899b1103caa563e00dc652a260baf1.tar.gz
slx-admin-67af92fc19899b1103caa563e00dc652a260baf1.tar.xz
slx-admin-67af92fc19899b1103caa563e00dc652a260baf1.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.php2
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 " .