Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit dfc66efd0490ede69f3c61aeb6b0faa3dfd31ec1 1 parent c0ac40e
@mouneyrac mouneyrac authored
View
2  admin/webservice/forms.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');
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.