Skip to content

Commit 349a4b4

Browse files
committed
Removed unnecessary code for filling in form inputs (#684)
1 parent 733428c commit 349a4b4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

mod_form.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ public function definition() {
7777
$mform->addHelpButton('customfilenamepattern', 'customfilenamepattern', 'customcert');
7878
$mform->disabledIf('customfilenamepattern', 'usecustomfilename', 'notchecked');
7979

80-
if ($this->current) {
81-
if (property_exists($this->current, 'usecustomfilename')) {
82-
$mform->setDefault('usecustomfilename', $this->current->usecustomfilename);
83-
}
84-
if (property_exists($this->current, 'customfilenamepattern')) {
85-
$mform->setDefault('customfilenamepattern', $this->current->customfilenamepattern);
86-
}
87-
}
88-
8980
if (has_capability('mod/customcert:manageemailstudents', $this->get_context())) {
9081
$mform->addElement('selectyesno', 'emailstudents', get_string('emailstudents', 'customcert'));
9182
$mform->setDefault('emailstudents', get_config('customcert', 'emailstudents'));

0 commit comments

Comments
 (0)