-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V9 Assignments weight verification giving erroneous result #279
Comments
I'm sorry if I'm posting this where it shouldn't but I also seeing the wrong Full Year calculation on 7.4 in 2 course periods configured in the same way and in which the only the assignments of the last term were getting a weight percent |
Not sure I can help as I dont run V 7.4. All I was pointing to here is that the feature in V9 that checks and warns the user if the weight distribution comes to 100% before assigning the final grades. V9 has a bug where it was not giving a proper warning. But it does do weight calculations correctly. |
Please use the updated code from the repo and check to see if you are still getting this error or not. Thanks! |
Still seeing that error. The code is identical as what I saw in version 9.0 |
In V9 It appears that line 1296 and 1301 in modules/grades/InputFinalGrades.php gives erroneous result, after changing line 1296 from:
if ($at_val['FINAL_GRADE_PERCENT'] != '' && number_format($at_val['FINAL_GRADE_PERCENT']) != 0)
to:
if ($at_val['FINAL_GRADE_PERCENT'] != '' && number_format($at_val['FINAL_GRADE_PERCENT'],2) != 0)
and line 1301 from:
if ($total_assignment_type_weightage == 0)
to:
if ($total_assignment_type_weightage != 1)
After the changes the results are appropriate for an un-weighed or incompletely weighed assignments.
The text was updated successfully, but these errors were encountered: