Projected final is broken in beta #3
Comments
Here's the problem code: https://github.com/lsuits/projected-final-grade/blob/master/rpc.php#L388 Instead of using the mocked category item, pull the grade item from the db like: Replace the second params with the result of that invocation. |
Are we going with this or Adam's? I need to push soon. |
Robert, please test. The fix is on master. |
Still getting notices: Notice: Undefined index: 2 in /var/www/rrusso/22/grade/report/projected/rpc.php on line 370 Notice: Undefined index: in /var/www/rrusso/22/grade/report/projected/rpc.php on line 370 Notice: Trying to get property of non-object in /var/www/rrusso/22/grade/report/projected/rpc.php on line 370 Notice: Undefined index: 2 in /var/www/rrusso/22/grade/report/projected/rpc.php on line 370 Notice: Undefined index: in /var/www/rrusso/22/grade/report/projected/rpc.php on line 370 Notice: Trying to get property of non-object in /var/www/rrusso/22/grade/report/projected/rpc.php on line 370 Notice: Undefined index: 2 in /var/www/rrusso/22/grade/report/projected/rpc.php on line 374 Notice: Undefined index: in /var/www/rrusso/22/grade/report/projected/rpc.php on line 374 Notice: Trying to get property of non-object in /var/www/rrusso/22/grade/report/projected/rpc.php on line 374 Notice: Undefined index: 2 in /var/www/rrusso/22/grade/report/projected/rpc.php on line 375 Notice: Undefined index: in |
Could you send me the course you are testing with? |
It was just a generic blank course that I created a gradebook with the builder. |
This can take a backseat to the restore issue. |
A new fix is on master, so this is ready for testing again. |
Does not work (nothing happens when grades are typed int) in the following configuration: COURSE -> sum of grades -> 1000 pts
|
Could you send me this course to debug with? |
No. It takes WAY less time to build with the GB builder than to restore it. That's how I created it anyway. Nothing special. |
Ok, that problem should be fixed. I think these are all unrelated issues... On that course, a perfect score of 1,000 is formatted as 1.00 for some reason. It may be due to an internal hard-coded limit in Moodle core, but we'll look into it. That enough of an edge case to ignore for now. |
Same course as above, must make shows 0 to make an A when an A is not a possible grade. Enter the following values to reproduce:
|
I found a few more underlying problems due to changes in the grade system. I think I'm close to fixing this, but I may find more. Projected Final Grade really needs to be rewritten from scratch. |
We can add that to our list of ever growing things to do. |
A new fix is on master...this should be the one. |
Issues still occurring:
How to replicate:
|
1 Should be fixed. Let me know if 2 and 3 are still happening. |
2 and 3 are still broken. |
I think it's finally fixed. |
Yes it is! |
Use http://beta.moodle.lsu.edu/course/view.php?id=40 to test.
Click grades > projected final.
Click any student and fill in data.
For bonus points, do the above in Firefox!
The text was updated successfully, but these errors were encountered: