Correction of transmitted types
This commit is contained in:
		@@ -66,7 +66,7 @@ class token_editor_form extends moodleform {
 | 
				
			|||||||
        $mform->addElement("text", "token", new lang_string("password", "moodle"));
 | 
					        $mform->addElement("text", "token", new lang_string("password", "moodle"));
 | 
				
			||||||
        $mform->addRule("token", null, "required");
 | 
					        $mform->addRule("token", null, "required");
 | 
				
			||||||
        $mform->setDefault("token", generate_password(12));
 | 
					        $mform->setDefault("token", generate_password(12));
 | 
				
			||||||
        $mform->setType("token", PARAM_NOTAGS);
 | 
					        $mform->setType("token", PARAM_RAW_TRIMMED);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /* State switching element */
 | 
					        /* State switching element */
 | 
				
			||||||
        $mform->addElement("advcheckbox", "enabled", new lang_string("enable", "moodle"));
 | 
					        $mform->addElement("advcheckbox", "enabled", new lang_string("enable", "moodle"));
 | 
				
			||||||
@@ -83,8 +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_RAW_TRIMMED);
 | 
				
			||||||
        $mform->setType("targetid", PARAM_INT);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /* The header of constraints */
 | 
					        /* The header of constraints */
 | 
				
			||||||
        $mform->addElement("header", "statsuserlogins", new lang_string("statsuserlogins", "moodle"));
 | 
					        $mform->addElement("header", "statsuserlogins", new lang_string("statsuserlogins", "moodle"));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user