]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18430: Completion progress report CSV download should be whole report not one...
authorsam_marshall <sam_marshall>
Tue, 3 Mar 2009 17:28:05 +0000 (17:28 +0000)
committersam_marshall <sam_marshall>
Tue, 3 Mar 2009 17:28:05 +0000 (17:28 +0000)
course/report/progress/index.php

index f91fcb8be78dedfd565bd16cd33595fd770c9072..0becbb5f5baea79fb2ea55f04d668c0c46178bc8 100644 (file)
@@ -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.'.