MDL-13815 - Course summary text is optional and empty by default now
authorjerome <jerome>
Tue, 29 Apr 2008 02:36:34 +0000 (02:36 +0000)
committerjerome <jerome>
Tue, 29 Apr 2008 02:36:34 +0000 (02:36 +0000)
course/edit_form.php

index 1c0431c..cfbaf00 100644 (file)
@@ -92,8 +92,6 @@ class course_edit_form extends moodleform {
 
         $mform->addElement('htmleditor','summary', get_string('summary'), array('rows'=> '10', 'cols'=>'65'));
         $mform->setHelpButton('summary', array('text', get_string('helptext')), true);
-        $mform->setDefault('summary', get_string('defaultcoursesummary'));
-        $mform->addRule('summary', get_string('missingsummary'), 'required', null, 'client');
         $mform->setType('summary', PARAM_RAW);
 
         $courseformats = get_list_of_plugins('course/format');