From eab678f193041fb54233a37b31e8d1a2f27e52a4 Mon Sep 17 00:00:00 2001 From: michaelpenne Date: Thu, 4 Aug 2005 22:08:08 +0000 Subject: [PATCH] Fixed Bug #3652 - Gradebook catagory detail group view not working. --- grade/lib.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/grade/lib.php b/grade/lib.php index 01f7131be8604..a3f6ce3e6729c 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -2775,7 +2775,7 @@ function grade_set_letter_grades() { } function grade_download_form($type='both') { - global $course,$USER; + global $course,$USER, $action, $cview; if ($type != 'both' || $type != 'excel' || $type != 'text') { $type = 'both'; } @@ -2798,7 +2798,15 @@ function grade_download_form($type='both') { echo ''; } echo ''; - setup_and_print_groups($course, $course->groupmode, 'index.php?id='.$course->id); + + $url = 'index.php?id='.$course->id; + if (!empty($action)) { + $url .= '&action='.$action; + if ($action == 'vcats') { + $url .= '&cview='.$cview; + } + } + setup_and_print_groups($course, $course->groupmode, $url); echo ''; echo '';