Merge branch 'MDL-48047-master' of git://github.com/lameze/moodle
authorDan Poltawski <dan@moodle.com>
Wed, 5 Nov 2014 12:05:58 +0000 (12:05 +0000)
committerDan Poltawski <dan@moodle.com>
Wed, 5 Nov 2014 12:05:58 +0000 (12:05 +0000)
grade/export/grade_export_form.php
grade/export/xml/export.php

index 5441dbb..138a9a1 100644 (file)
@@ -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));
index 3ab49a4..b138f06 100644 (file)
@@ -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