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.
This commit is contained in:
@@ -390,11 +390,7 @@ if (!empty($instanceid) && !empty($roleid)) {
|
||||
echo '</div>'."\n";
|
||||
echo '</form>'."\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 '</div>'."\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user