Correction of transmitted parameters

This commit is contained in:
2017-10-26 09:44:44 +04:00
parent f43b3f2fd3
commit 18a5d23d07
3 changed files with 4 additions and 6 deletions

View File

@ -81,7 +81,7 @@ class service_edit_form extends moodleform {
$mform->addRule("url", null, "required");
/* Enabling the service */
$mform->addElement("checkbox", "enable",
$mform->addElement("advcheckbox", "enable",
new lang_string("enable", "moodle"));
$mform->setType("enable", PARAM_BOOL);
$mform->setDefault("enable", 1);