aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */