|
@ -381,15 +381,15 @@ class attendance_user_data implements renderable { |
|
|
$this->groups = groups_get_all_groups($att->course->id); |
|
|
$this->groups = groups_get_all_groups($att->course->id); |
|
|
} else { |
|
|
} else { |
|
|
$this->coursesatts = att_get_user_courses_attendances($userid); |
|
|
$this->coursesatts = att_get_user_courses_attendances($userid); |
|
|
|
|
|
|
|
|
$this->statuses = array(); |
|
|
$this->statuses = array(); |
|
|
$this->stat = array(); |
|
|
$this->stat = array(); |
|
|
$this->gradable = array(); |
|
|
$this->gradable = array(); |
|
|
$this->grade = array(); |
|
|
$this->grade = array(); |
|
|
$this->maxgrade = array(); |
|
|
$this->maxgrade = array(); |
|
|
foreach ($this->coursesatts as $ca) { |
|
|
foreach ($this->coursesatts as $atid => $ca) { |
|
|
// Check to make sure the user can view this cm. |
|
|
// Check to make sure the user can view this cm. |
|
|
if (!get_fast_modinfo($ca->courseid)->instances['attendance'][$ca->attid]->uservisible) { |
|
|
if (!get_fast_modinfo($ca->courseid)->instances['attendance'][$ca->attid]->uservisible) { |
|
|
|
|
|
unset($this->courseatts[$atid]); |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
$statuses = att_get_statuses($ca->attid); |
|
|
$statuses = att_get_statuses($ca->attid); |
|
@ -418,7 +418,6 @@ class attendance_user_data implements renderable { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$this->urlpath = $att->url_view()->out_omit_querystring(); |
|
|
$this->urlpath = $att->url_view()->out_omit_querystring(); |
|
|
$params = $att->pageparams->get_significant_params(); |
|
|
$params = $att->pageparams->get_significant_params(); |
|
|
$params['id'] = $att->cm->id; |
|
|
$params['id'] = $att->cm->id; |
|
|