fixing some warnings
This commit is contained in:
@@ -44,9 +44,7 @@ class grade_export_form extends moodleform {
|
||||
$options = array('10'=>10, '20'=>20, '100'=>100, '1000'=>1000, '100000'=>100000);
|
||||
$mform->addElement('select', 'previewrows', get_string('previewrows', 'grades'), $options);
|
||||
|
||||
if (!empty($features['updatedgrades'])) {
|
||||
$mform->addElement('advcheckbox', 'updatedgradesonly', get_string('updatedgradesonly', 'grades'));
|
||||
}
|
||||
$mform->addElement('advcheckbox', 'updatedgradesonly', get_string('updatedgradesonly', 'grades'));
|
||||
|
||||
/// selections for decimal points and format, MDL-11667, defaults to site settings, if set
|
||||
//$default_gradedisplaytype = $CFG->grade_export_displaytype;
|
||||
|
||||
@@ -76,7 +76,6 @@ class grade_export {
|
||||
}
|
||||
}
|
||||
|
||||
$this->export_letters = $export_letters;
|
||||
$this->export_feedback = $export_feedback;
|
||||
$this->userkey = '';
|
||||
$this->previewrows = false;
|
||||
|
||||
@@ -51,7 +51,7 @@ if (!empty($CFG->gradepublishing)) {
|
||||
$CFG->gradepublishing = has_capability('gradeexport/xml:publish', $context);
|
||||
}
|
||||
|
||||
$mform = new grade_export_form(null, array('idnumberrequired'=>true, 'publishing' => true, 'updatedgrades' => true));
|
||||
$mform = new grade_export_form(null, array('idnumberrequired'=>true, 'publishing' => true));
|
||||
|
||||
// process post information
|
||||
if ($data = $mform->get_data()) {
|
||||
|
||||
Reference in New Issue
Block a user