Permalink
Browse files

MDL-37275 webservices: ensure a webservice function is chosen before …

…attempting to add to service
  • Loading branch information...
1 parent 7def533 commit 01476363917bd104d75b18f7d64a3354709c6e79 @markn86 markn86 committed Jan 15, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 admin/webservice/forms.php
@@ -163,6 +163,7 @@ function definition() {
$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);

0 comments on commit 0147636

Please sign in to comment.