"Shelf" & "Gradebook" code conflict resolved - Thanks Gustav

"Shelf" & "Gradebook" code conflict resolved - Thanks Gustav

by W Page -
Number of replies: 0
Hi Gustav!

Just wanted to thank you for your help with the
Gradebook - Shelf code conflict. I was just able to change the code (because of intense school work which just ended) as you indicated in the following thread,
http://moodle.org/mod/forum/discuss.php?d=4734&parent=29188

I went near to the bottom of,
/moodle/mod/shelf/lib.php
and changed the following lines

function shelf_grades($shelfid) {
/// Must return an array of grades for a given instance of this module,
/// indexed by user. It also returns a maximum allowed grade.

$return->grades = NULL;
$return->maxgrade = NULL;

return $return;
}

TO

function shelf_grades($shelfid) {
/// shelf does not generate grades
return NULL;
}

The "shelf" column disappeared. This was the code from the original "shelf" mod. I will be installing the updated one and I will let you know if there is a problem.

PS >>Also need to make the change in the updated "shelf" lib.php file.

WP1