fixing grader report paging bar when groups are present

This commit is contained in:
toyomoyo 2007-08-15 05:47:34 +00:00
parent 0d7b6bb3e1
commit 8c40e0919d
2 changed files with 4 additions and 4 deletions

View File

@ -89,9 +89,9 @@ class grade_report_grader extends grade_report {
// base url for sorting by first/last name
$this->baseurl = 'index.php?id='.$this->courseid.'&perpage='.$this->get_pref('studentsperpage')
.'&page='.$this->page;
.'&page='.$this->page.'&';
//
$this->pbarurl = 'index.php?id='.$this->courseid.'&perpage='.$this->get_pref('studentsperpage');
$this->pbarurl = 'index.php?id='.$this->courseid.'&perpage='.$this->get_pref('studentsperpage').'&';
// Setup groups if requested
if ($this->get_pref('showgroups')) {

View File

@ -280,8 +280,8 @@ class grade_report {
$this->group_selector = ob_get_clean();
// update paging after group
$this->baseurl .= 'group='.$this->currentgroup;
$this->pbarurl .= 'group='.$this->currentgroup;
$this->baseurl .= 'group='.$this->currentgroup.'&';
$this->pbarurl .= 'group='.$this->currentgroup.'&';
if ($this->currentgroup) {
$this->groupsql = " LEFT JOIN {$CFG->prefix}groups_members gm ON gm.userid = u.id ";