Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-29471 php warning when adding function to a new web service

  • Loading branch information...
commit 049c70ea9d72e03ba51e942ea381daf41e51d2db 1 parent d4b3034
@mouneyrac mouneyrac authored
View
2  admin/webservice/forms.php
@@ -160,7 +160,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');
View
2  admin/webservice/service_functions.php
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.