Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.3, 1.8.4, 1.8.5
-
Fix Version/s: None
-
Component/s: Patch: Gradebook Plus
-
Labels:None
-
Affected Branches:MOODLE_18_STABLE
Description
After upgrading from 1.8.2 to 1.8.3 the gradebook does not properly export grades in any format - only the column headings are exported. This is true only for existing courses; if a new course is created, grade export works correctly.
The problem persists even after upgrading to 1.8.5 and installing the latest version of GBPv2
Caroline - Rather than being related to scales, it appears to me that the issue with the course you shared with me is the group mode. The problem is around line 1405. I am preparing to check in a fix that will start with all students and then replace it when the smaller group is wanted. So instead of having:
/// Check to see if groups are being used in this course
if (groupmode($course) !=0) {
if ($currentgroup = get_current_group($course->id)) { // get the current group
$students = get_group_students($currentgroup, "u.lastname ASC"); // group members of the group
}}
else {// if not groupmode then the group is the entire course so get all course students $students = grade_get_course_students($course->id); }
I am looking at replacing it with:
/// Check to see if groups are being used in this course
$students = grade_get_course_students($course->id); //see
CONTRIB-404- get all students first and then reduce if there is a groupif (groupmode($course) !=0) {
if ($currentgroup = get_current_group($course->id)) { // get the current group $students = get_group_students($currentgroup, "u.lastname ASC"); // group members of the group }
}
CONTRIB-404- get all students first and then reduce if there is a group if (groupmode($course) !=0) { if ($currentgroup = get_current_group($course->id)) { // get the current group $students = get_group_students($currentgroup, "u.lastname ASC"); // group members of the group } }