Permalink
Browse files

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

  • Loading branch information...
1 parent c0ac40e commit dfc66efd0490ede69f3c61aeb6b0faa3dfd31ec1 @mouneyrac mouneyrac committed Jan 27, 2012
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 dfc66ef

Please sign in to comment.