moodle/lib/grade
Eloy Lafuente (stronk7) e0d79c8e71 MDL-74449 gradebook: Protect flatten_dependencies_array() a little bit
It has been detected that the flatten_dependencies_array() was fragile
and leading to wrong results when some incorrect data was passed to it.

This includes:

- Missing elements.
- Null dependencies.
- Non array dependencies.

While the existing behaviour (testing-wise) has been preserved, now the
situations above are better controlled and the function ignores all
those incorrect cases that shouldn't happen ever.

That implies that a good number of notices/warnings/errors aren't
happening anymore. That was impacting both results (when the problems
were  only notices and warnings) and execution (when the problems
were errors).

Covered with tests.
2022-06-10 18:17:53 +02:00
..
tests MDL-74449 gradebook: Protect flatten_dependencies_array() a little bit 2022-06-10 18:17:53 +02:00
constants.php MDL-72873 core_grades: Remove $CFG->grade_navmethod 2021-12-16 00:10:13 +08:00
grade_category.php MDL-70433 grades: prevent double escaping in titles 2021-08-27 10:56:20 +02:00
grade_grade.php MDL-74449 gradebook: Protect flatten_dependencies_array() a little bit 2022-06-10 18:17:53 +02:00
grade_item.php MDL-71610 theme_boost: switch to standard editing mode for gradebook 2021-09-29 09:25:36 +02:00
grade_object.php MDL-32103 completion: Allow instant completion updates. 2021-07-13 12:07:53 +02:00
grade_outcome.php MDL-32103 completion: Allow instant completion updates. 2021-07-13 12:07:53 +02:00
grade_scale.php MDL-32103 completion: Allow instant completion updates. 2021-07-13 12:07:53 +02:00