Skip to content

Commit

Permalink
Fixed Bug #3652 - Gradebook catagory detail group view not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpenne committed Aug 4, 2005
1 parent 40c61f1 commit eab678f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions grade/lib.php
Expand Up @@ -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';
}
Expand All @@ -2798,7 +2798,15 @@ function grade_download_form($type='both') {
echo '</td>';
}
echo '<td>';
setup_and_print_groups($course, $course->groupmode, 'index.php?id='.$course->id);

$url = 'index.php?id='.$course->id;
if (!empty($action)) {
$url .= '&amp;action='.$action;
if ($action == 'vcats') {
$url .= '&amp;cview='.$cview;
}
}
setup_and_print_groups($course, $course->groupmode, $url);
echo '</td>';

echo '</tr></table>';
Expand Down

0 comments on commit eab678f

Please sign in to comment.