From c56248f14bef84578b3d211de62e97b05fb3f124 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 13e1c3ddc4f..14b8576c170 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);