|
@ -204,7 +204,7 @@ class mod_attendance_update_form extends moodleform { |
|
|
$errors['sestime'] = get_string('invalidsessionendtime', 'attendance'); |
|
|
$errors['sestime'] = get_string('invalidsessionendtime', 'attendance'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if ($data['automark'] == ATTENDANCE_AUTOMARK_CLOSE) { |
|
|
if (!empty($data['studentscanmark']) && $data['automark'] == ATTENDANCE_AUTOMARK_CLOSE) { |
|
|
$cm = $this->_customdata['cm']; |
|
|
$cm = $this->_customdata['cm']; |
|
|
// Check that the selected statusset has a status to use when unmarked. |
|
|
// Check that the selected statusset has a status to use when unmarked. |
|
|
$sql = 'SELECT id |
|
|
$sql = 'SELECT id |
|
|