Merge branch 'MDL-78129-master' of https://github.com/andrewnicols/moodle

This commit is contained in:
Huong Nguyen
2023-09-22 10:29:54 +07:00
58 changed files with 945 additions and 145 deletions
+1 -4
View File
@@ -52,7 +52,7 @@ if (!$communication) {
}
// Set variables according to the component callback and use them on the page.
list($instance, $context, $heading, $returnurl) = component_callback(
[$instance, $context, $heading, $returnurl] = component_callback(
$component,
'get_communication_instance_data',
[$instanceid]
@@ -79,11 +79,8 @@ $form = new \core_communication\form\configure_form(
if ($form->is_cancelled()) {
redirect($returnurl);
} else if ($data = $form->get_data()) {
component_callback($component, 'update_communication_instance_data', [$data]);
redirect($returnurl);
}