Permalink
Browse files

Merge branch 'MDL-29471-MOODLE_21_STABLE' of git://github.com/mouneyr…

…ac/moodle into MOODLE_21_STABLE
  • Loading branch information...
nebgor committed Feb 14, 2012
2 parents 0e37315 + dfc66ef commit 38a88bb4bc73ae744bb651a15cd8f20f9cc0924b
Showing with 2 additions and 2 deletions.
  1. +1 −1 admin/webservice/forms.php
  2. +1 −1 admin/webservice/service_functions.php
@@ -155,7 +155,7 @@ function definition() {
$functions[$functionid] = $function->name . ':' . $function->description;
}
- $mform->addElement('searchableselector', 'fid', get_string('name'),
+ $mform->addElement('searchableselector', 'fids', get_string('name'),
$functions, array('multiple'));
$mform->addElement('hidden', 'id');
@@ -67,7 +67,7 @@
//add the function to the service then redirect to function list page
if ($data = $mform->get_data()) {
ignore_user_abort(true); // no interruption here!
- foreach ($data->fid as $fid) {
+ foreach ($data->fids as $fid) {
$function = $webservicemanager->get_external_function_by_id(
$fid, MUST_EXIST);
// make sure the function is not there yet

0 comments on commit 38a88bb

Please sign in to comment.