|
|
@ -60,7 +60,6 @@ class mod_attendance_export_form extends moodleform { |
|
|
|
} |
|
|
|
$mform->addElement('select', 'group', get_string('group'), $grouplist); |
|
|
|
|
|
|
|
|
|
|
|
// Restrict the export to the selected users. |
|
|
|
$namefields = get_all_user_name_fields(true, 'u'); |
|
|
|
$allusers = get_enrolled_users($modcontext, 'mod/attendance:canbelisted', 0, 'u.id,'.$namefields); |
|
|
@ -128,13 +127,13 @@ class mod_attendance_export_form extends moodleform { |
|
|
|
'text' => get_string('downloadtext', 'attendance') |
|
|
|
)); |
|
|
|
|
|
|
|
$submit_string = get_string('ok'); |
|
|
|
$this->add_action_buttons(false, $submit_string); |
|
|
|
$submitstring = get_string('ok'); |
|
|
|
$this->add_action_buttons(false, $submitstring); |
|
|
|
|
|
|
|
$mform->addElement('hidden', 'id', $cm->id); |
|
|
|
} |
|
|
|
|
|
|
|
function validation($data, $files) { |
|
|
|
public function validation($data, $files) { |
|
|
|
$errors = parent::validation($data, $files); |
|
|
|
|
|
|
|
// Validate the 'users' field. |
|
|
|