From 01476363917bd104d75b18f7d64a3354709c6e79 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 15 Jan 2013 14:09:50 +0800 Subject: [PATCH] MDL-37275 webservices: ensure a webservice function is chosen before attempting to add to service --- admin/webservice/forms.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/webservice/forms.php b/admin/webservice/forms.php index 289dcc4d093..745e9e186b4 100644 --- a/admin/webservice/forms.php +++ b/admin/webservice/forms.php @@ -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);