Permalink
Browse files

MDL-31288 Assignment : fixed requiresubmission setting states

  • Loading branch information...
1 parent 4c7f536 commit d590ffdc68d763feca60e1b88c5f179442ca578e @nebgor nebgor committed Aug 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/assign/mod_form.php
View
@@ -92,9 +92,9 @@ function definition() {
$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);

0 comments on commit d590ffd

Please sign in to comment.