From 267dab04842a74cf2107a6391ef9d62ea64e4caf Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 2 Dec 2017 15:32:31 +0400 Subject: The standard goal is a guest account --- classes/standard_forms.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/standard_forms.php b/classes/standard_forms.php index cb985bf..0ab66d7 100644 --- a/classes/standard_forms.php +++ b/classes/standard_forms.php @@ -83,6 +83,7 @@ class token_editor_form extends moodleform { /* The identifier element */ $mform->addElement("text", "targetid", new lang_string("idnumbermod", "moodle")); $mform->addRule("targetid", null, "required"); + $mform->setDefault("targetid", 1); $mform->setType("targetid", PARAM_INT); /* The header of constraints */ -- cgit v1.2.3