diff --git a/public/report/progress/index.php b/public/report/progress/index.php index 0ac3d299ae1..89cfd86792b 100644 --- a/public/report/progress/index.php +++ b/public/report/progress/index.php @@ -497,8 +497,11 @@ print ''; // Add buttons for exporting report. if ($grandtotal && count($activities) > 0) { - echo $OUTPUT->download_dataformat_selector(get_string('downloadas', 'table'), $url, 'dataformat', [ - 'course' => $course->id, - ]); + echo $OUTPUT->download_dataformat_selector( + get_string('downloadas', 'table'), + $url->out_omit_querystring(), + 'dataformat', + $url->params() + ); } echo $OUTPUT->footer();