Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.8
-
Fix Version/s: 1.8
-
Component/s: Patch: Gradebook Plus
-
Labels:None
-
Affected Branches:MOODLE_18_STABLE
-
Fixed Branches:MOODLE_18_STABLE
Description
While trying to remove some of the undefined variable notices associated with $group we lost some of the navigational functionality of maintaining groups and categories while editing grades.
$group was undefined because it is not being passed as a POST. Adding it to line 21xx defines it for use elsewhere:
if ($action == 'edit') {
print '<table align="center" class="grade_edit">';
print '<tr><td><form name="cat_form">';
print '<input type="hidden" name="id" value="'.$course->id.'" />';
print '<input type="hidden" name="action" value="edit" />';
print '<input type="hidden" name="group" value="'.$group.'" />'; //THIS LINE ADDED IN
if ($preferences->use_advanced != 0) {
// Get other cat info and display category select if more than one category present