mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
Merge branch 'MDL-48047-master' of git://github.com/lameze/moodle
This commit is contained in:
commit
35d236c1ea
@ -61,7 +61,7 @@ class grade_export_form extends moodleform {
|
||||
}
|
||||
|
||||
if (!empty($features['idnumberrequired']) and empty($grade_item->idnumber)) {
|
||||
$mform->addElement('advcheckbox', 'itemids['.$grade_item->id.']', $grade_item->get_name(), get_string('noidnumber', 'grades'));
|
||||
$mform->addElement('checkbox', 'itemids['.$grade_item->id.']', $grade_item->get_name(), get_string('noidnumber', 'grades'));
|
||||
$mform->hardFreeze('itemids['.$grade_item->id.']');
|
||||
} else {
|
||||
$mform->addElement('advcheckbox', 'itemids['.$grade_item->id.']', $grade_item->get_name(), null, array('group' => 1));
|
||||
|
@ -37,7 +37,8 @@ if (groups_get_course_groupmode($COURSE) == SEPARATEGROUPS and !has_capability('
|
||||
print_error('cannotaccessgroup', 'grades');
|
||||
}
|
||||
}
|
||||
$mform = new grade_export_form(null, array('publishing' => true, 'simpleui' => true, 'multipledisplaytypes' => false));
|
||||
$mform = new grade_export_form(null, array('publishing' => true, 'simpleui' => true, 'multipledisplaytypes' => false,
|
||||
'idnumberrequired' => true));
|
||||
$formdata = $mform->get_data();
|
||||
|
||||
// print all the exported data here
|
||||
|
Loading…
x
Reference in New Issue
Block a user