Merge branch 'MDL-29471' of git://github.com/mouneyrac/moodle
This commit is contained in:
@@ -160,7 +160,7 @@ class external_service_functions_form extends moodleform {
|
||||
$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 @@ switch ($action) {
|
||||
//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
|
||||
|
||||
Reference in New Issue
Block a user