The standard goal is a guest account

This commit is contained in:
Valentin Popov 2017-12-02 15:32:31 +04:00
parent c5115b3121
commit 267dab0484

View File

@ -83,6 +83,7 @@ class token_editor_form extends moodleform {
/* The identifier element */ /* The identifier element */
$mform->addElement("text", "targetid", new lang_string("idnumbermod", "moodle")); $mform->addElement("text", "targetid", new lang_string("idnumbermod", "moodle"));
$mform->addRule("targetid", null, "required"); $mform->addRule("targetid", null, "required");
$mform->setDefault("targetid", 1);
$mform->setType("targetid", PARAM_INT); $mform->setType("targetid", PARAM_INT);
/* The header of constraints */ /* The header of constraints */