From 10130df65bf429db9a45592fd6488f8e9b637c6e Mon Sep 17 00:00:00 2001 From: sam_marshall Date: Tue, 3 Mar 2009 17:28:05 +0000 Subject: [PATCH] MDL-18430: Completion progress report CSV download should be whole report not one page --- course/report/progress/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/course/report/progress/index.php b/course/report/progress/index.php index f91fcb8be7..0becbb5f5b 100644 --- a/course/report/progress/index.php +++ b/course/report/progress/index.php @@ -58,7 +58,8 @@ if(count($activities)==0) { print_error('err_noactivities','completion',$reportsurl); } -$progress=$completion->get_progress_all($firstnamesort,$group,COMPLETION_REPORT_PAGE,$start); +$progress=$completion->get_progress_all($firstnamesort,$group, + $csv ? 0 :COMPLETION_REPORT_PAGE,$csv ? 0 : $start); if($csv) { header('Content-Disposition: attachment; filename=progress.'. -- 2.39.5