MDL-37275 webservices: ensure a webservice function is chosen before attempting to add to service

This commit is contained in:
Mark Nelson
2013-01-18 15:34:33 +08:00
parent a5ec499521
commit 26741e3e2f
+1
View File
@@ -163,6 +163,7 @@ class external_service_functions_form extends moodleform {
$mform->addElement('searchableselector', 'fids', get_string('name'),
$functions, array('multiple'));
$mform->addRule('fids', get_string('required'), 'required', null, 'client');
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT);