aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-12-02 14:32:31 +0300
committerValentin Popov <info@valentineus.link>2017-12-02 14:32:31 +0300
commit267dab04842a74cf2107a6391ef9d62ea64e4caf (patch)
tree21cf8e1cbabac65111691f987210d84bde6efc40
parentc5115b31211814827642865461dc6bc150ba2b12 (diff)
downloadtool_managertokens-267dab04842a74cf2107a6391ef9d62ea64e4caf.tar.xz
tool_managertokens-267dab04842a74cf2107a6391ef9d62ea64e4caf.zip
The standard goal is a guest account
-rw-r--r--classes/standard_forms.php1
1 files changed, 1 insertions, 0 deletions
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 */