diff --git a/mod/assignment/mod.html b/mod/assignment/mod.html index dfd4b64b243..27f239c9cfe 100644 --- a/mod/assignment/mod.html +++ b/mod/assignment/mod.html @@ -6,6 +6,30 @@ $defaultformat = FORMAT_MOODLE; $onsubmit = ""; } + if (empty($form->name)) { + $form->name = ""; + } + if (empty($form->description)) { + $form->description = ""; + } + if (empty($form->format)) { + $form->format = ""; + } + if (empty($form->type)) { + $form->type = ""; + } + if (empty($form->resubmit)) { + $form->resubmit = ""; + } + if (empty($form->grade)) { + $form->grade = ""; + } + if (empty($form->maxbytes)) { + $form->maxbytes = ""; + } + if (empty($form->timedue)) { + $form->timedue = ""; + } ?>