From b7d3d4f191eb58f3f2e105052ec14487aa806517 Mon Sep 17 00:00:00 2001 From: Amaia Anabitarte Date: Thu, 16 Jan 2025 10:31:53 +0100 Subject: [PATCH] MDL-81384 report_participation: Remove innecessary JS parameters The parameter are usable in course participants page because user could add bulk notes linked to users. But that script is not used in report/participants, so we don't need those arguments on the call. Backported from MDL-75669. --- report/participation/index.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/report/participation/index.php b/report/participation/index.php index e0883438d32..e63ac40fa4e 100644 --- a/report/participation/index.php +++ b/report/participation/index.php @@ -390,11 +390,7 @@ if (!empty($instanceid) && !empty($roleid)) { echo ''."\n"; echo ''."\n"; - $options = new stdClass(); - $options->courseid = $course->id; - $options->noteStateNames = note_get_state_names(); - $options->stateHelpIcon = $OUTPUT->help_icon('publishstate', 'notes'); - $PAGE->requires->js_call_amd('report_participation/participants', 'init', [$options]); + $PAGE->requires->js_call_amd('report_participation/participants', 'init'); } echo ''."\n"; }