Skip to content

Commit

Permalink
MDL-31288 Assignment : fixed requiresubmission setting states
Browse files Browse the repository at this point in the history
  • Loading branch information
Aparup Banerjee committed Aug 1, 2012
1 parent 4c7f536 commit d590ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/assign/mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d590ffd

Please sign in to comment.