Permalink
Browse files

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

…attempting to add to service
  • Loading branch information...
1 parent a5ec499 commit 26741e3e2f3f4950c555ed64833cc45e043d2ad2 @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 26741e3

Please sign in to comment.