Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.8.2
-
Fix Version/s: 1.8
-
Component/s: Patch: Gradebook Plus
-
Labels:None
-
Environment:PHP 5.2.1, MYSQL, APACHE 2, UBUNTU 7.04, Moodle 1.8.2+
-
Affected Branches:MOODLE_18_STABLE
-
Fixed Branches:MOODLE_18_STABLE
Description
1. The Group dropdown does not work in the exceptions tab. This is the case in both the "regular" gradebook and GBPv2. This is important to many teacher that differentiate in the classroom and need to easily separate student groups to make exceptions.
2. In GBPv2 the graded_events look like they are being excluded, and as far as I can tell the exclusion is correct in the table, but they are not handled correctly in the view tab. The exclusion does not show up and the event is included in the grade.
This is causing the final grade for students to be completely incorrect. While the first issue is one of convenience, the second is a necessity for the grades to be calculated correctly.
Username: teacher Password: moodle to log in and view the bug. I may have my version of GBPV2 installed when you look which does not change any of the existing parts of the mod. It does add 1 table and call 1 function during the display of the grades. The screen capture was off of the current version of GBPV2 withouy my mod.
Attachments
Issue Links
| This issue has a non-specific relationship to: | ||||
| CONTRIB-105 | Gradebook will not show all participants when groups are defined, and course group mode is set to no |
|
|
|
Here is the jist of the problem with GBV2.
First, the problem is only with graded items put in through GBV2.
Second, the graded items (put in through the GBV2 module) go in correctly to the grade_exceptions table correctly.
The problem appears to be when those items are pulled they are not included in the array of exceptions.
I originally thought it was in the grade_get_exceptions_user function. I can followed the code logic to there, but now I think it is in how the items are added in the first place. As it does not have a corresponding module to match up with in the modules table, it is not being pulled with the other graded events.
The GBPV2 graded items add needs to be changed slightly so that it is an actual module that matches up in the other table. It currently simply says it is modid 0 (which isn't in the table) instead of actually adding an activity type in the module table when it is initially created. There may be a simpler workaround than changing how it is added in the table but I think changing the addition to match other modules would bring it more in line with existing moodle code and prevent future errors.
I have already fixed the groups error and will be sumbitting those changes to be implemented in the GBPV2. We still need the module changed that adds the events.
Brian