Commit d590ffdc authored by Aparup Banerjee's avatar Aparup Banerjee
Browse files

MDL-31288 Assignment : fixed requiresubmission setting states

parent 4c7f5363
......@@ -92,9 +92,9 @@ class mod_assign_mod_form extends moodleform_mod {
$mform->addHelpButton('submissiondrafts', 'submissiondrafts', 'assign');
$mform->setDefault('submissiondrafts', 0);
// submission statement
if (!empty($config->requiresubmissionstatement)) {
if (empty($config->requiresubmissionstatement)) {
$mform->addElement('selectyesno', 'requiresubmissionstatement', get_string('requiresubmissionstatement', 'assign'));
$mform->setDefault('requiresubmissionstatement', !empty($config->submissionstatement));
$mform->setDefault('requiresubmissionstatement', 0);
$mform->addHelpButton('requiresubmissionstatement', 'requiresubmissionstatement', 'assign');
} else {
$mform->addElement('hidden', 'requiresubmissionstatement', 1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment