mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-11718 aggregated grades which depend on hidden grades are now hidden too + cleanup in grader report
This commit is contained in:
parent
93b2ed94a8
commit
b89a70ce8a
5 changed files with 108 additions and 87 deletions
|
@ -476,11 +476,11 @@ class grade_grade extends grade_object {
|
|||
* Return array of grade item ids that are either hidden or indirectly depend
|
||||
* on hidden grades, excluded grades are not returned.
|
||||
* @static
|
||||
* @param array $grades all course grades of one user
|
||||
* @param array $grades all course grades of one user, & used for better internal caching
|
||||
* @param array $items $grade_items array of grade items, & used for better internal caching
|
||||
* @return array
|
||||
*/
|
||||
function get_hiding_affected($grade_grades, &$grade_items) {
|
||||
function get_hiding_affected(&$grade_grades, &$grade_items) {
|
||||
if (count($grade_grades) !== count($grade_items)) {
|
||||
error("Incorrent size of arrays in params of grade_grade::get_hiding_affected()!");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue