moodle/grade
Mark Nelson 20180b3167 MDL-52218 gradereport_grader: fixed 'grade:viewhidden' related errors
There were two main reasons why there were PHP errors.

1) We were not passing variables as references.
2) When we were restricting the number of items shown in
   the report we were not collecting all of the dependencies
   which were required when a user did *not* have the
   capability 'moodle/grade:viewhidden'. This would cause
   an undefined offset error due to the index missing in
   the dependency array.

This also meant that a user without the capability 'moodle/grade:viewhidden'
could view the course total without hidden items being taken into account
if they were not being displayed. To resolve this we now pass all the grades
and grade items when the user does not have the capability - which also solves
the PHP errors listed above.
2016-01-11 16:01:33 +08:00
..
edit MDL-51051 core_grades: 'Categories and items' => 'Gradebook setup' 2015-09-14 08:23:32 +08:00
export MDL-51784 general: Adding missing php4 style constructors 2015-12-11 14:02:42 +08:00
grading MDL-52081 forms: Use __construct() for constructors 2015-12-10 13:38:01 +08:00
import MDL-52059 versions: bump all versions and requires near release 2015-11-10 12:33:52 +01:00
report MDL-52218 gradereport_grader: fixed 'grade:viewhidden' related errors 2016-01-11 16:01:33 +08:00
tests MDL-52078 gradebook: Behat tests for hidden grade items. 2016-01-05 13:48:54 +08:00
externallib.php MDL-43535 webservices: Marking functions as deprecated 2015-02-09 05:42:22 +08:00
index.php MDL-30999 grade: updated Grade API phpdocs 2012-02-14 14:04:19 +07:00
lib.php MDL-51784 general: Adding missing php4 style constructors 2015-12-11 14:02:42 +08:00
querylib.php MDL-46527 grades: grade_get_grades external function rewritten 2014-10-21 12:10:01 +02:00