Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.8, 1.8.1, 1.8.2
-
Fix Version/s: None
-
Component/s: Patch: Gradebook Plus
-
Labels:None
-
Affected Branches:MOODLE_18_STABLE
Description
I first reported this problem <a href="http://moodle.org/mod/forum/discuss.php?d=84721#p374406">here</a>. I have Gradebook Plus Version 2 (GBPv2) installed in Moodle 1.8. When I [[editgrades]], names of the students are sorted by Firstname. When I sort it by Lastname, I cannot [[editgrades]]. Is it possible to [[editgrades]] after sorting the names by Lastname?
The attached patch will detect if the user is in edit mode and instead of using the action=vcats (which only displays the table), it uses the PHP str_replace function to replace action=vcats with action=edit so that edit mode is preserved in the sort by lastname and sort by firstname links ($student_heading_link).