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:06 +08:00
parent 7def53379b
commit 0147636391
+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);