mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
assignment MDL-23820 removing the extra format html field.
This commit is contained in:
parent
825301f6f1
commit
1a905dbe60
@ -995,7 +995,6 @@ class assignment_base {
|
||||
$mformdata->enableoutcomes = $CFG->enableoutcomes;
|
||||
$mformdata->grade = $this->assignment->grade;
|
||||
$mformdata->gradingdisabled = $gradingdisabled;
|
||||
$mformdata->usehtmleditor = $this->usehtmleditor;
|
||||
$mformdata->nextid = $nextid;
|
||||
$mformdata->submissioncomment= $submission->submissioncomment;
|
||||
$mformdata->submissioncommentformat= FORMAT_HTML;
|
||||
@ -2181,15 +2180,6 @@ class mod_assignment_grading_form extends moodleform {
|
||||
$mform->setDefault('submissioncomment_editor', $this->_customdata->submission->submissioncomment);
|
||||
//$mform->addRule('submissioncomment', get_string('required'), 'required', null, 'client');
|
||||
|
||||
if ($this->_customdata->usehtmleditor) {
|
||||
$mform->addElement('hidden', 'format', FORMAT_HTML);
|
||||
$mform->setType('format', PARAM_INT);
|
||||
} else {
|
||||
//format menu
|
||||
$format_menu = format_text_menu();
|
||||
$mform->addElement('select', 'format', get_string('format'), $format_menu, array('selected' => $this->_customdata->submission->format ) );
|
||||
$mform->setType('format', PARAM_INT);
|
||||
}
|
||||
$lastmailinfo = get_user_preferences('assignment_mailinfo', 1) ? array('checked'=>'checked') : array();
|
||||
$mform->addElement('hidden', 'mailinfo_h', "0");
|
||||
$mform->setType('mailinfo_h', PARAM_INT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user