Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-29471 php warning when adding function to a new web service
  • Loading branch information
mouneyrac committed Jan 27, 2012
1 parent d4b3034 commit 049c70e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/webservice/forms.php
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion admin/webservice/service_functions.php
Expand Up @@ -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
Expand Down

0 comments on commit 049c70e

Please sign in to comment.