You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saw broken gradebook behavior in moodle 3.5 in a course. Steps to produce the broken behavior:
A course with multiple kinds of activities.
Delete an Ouwiki activity.
Note that gradebook displays a warning "Warning: Activity deletion in progress! Some grades are about to be removed. " and next to the item [Deletion in progress].
Try to delete other types of activites. Notes that they, too, display [Deletion in progress'.
Add the missing function (ouwiki_update_grades) to its lib.php.
The broken gradebook behavior in the existing course does not go away, but if you start over with a duplicate of the course, the issue is not reproduced.
The text was updated successfully, but these errors were encountered:
@param int $userid specific user only, 0 means all
@param bool $nullifnone - not used
*/
function ouwiki_update_grades($ouwiki, $userid=0, $nullifnone=true) {
global $CFG;
require_once($CFG->libdir.'/gradelib.php');
if ($ouwiki->grade == 0) {
ouwiki_grade_item_update($ouwiki);
} else if ($grades = ouwiki_get_user_grades($ouwiki, $userid)) {
foreach ($grades as $k => $v) {
if ($v->rawgrade == -1) {
$grades[$k]->rawgrade = null;
}
}
ouwiki_grade_item_update($ouwiki, $grades);
Saw broken gradebook behavior in moodle 3.5 in a course. Steps to produce the broken behavior:
A course with multiple kinds of activities.
The text was updated successfully, but these errors were encountered: