moodle/grade
Eloy Lafuente (stronk7) e2821bf1ce MDL-73824 gradebook: Stricter float check to some gradelib functions
It has been detected that, right now, some localised floats are
being passed to those functions (say comma separator, say thousands)
and that's leading to all sort of problems later when comparing,
processing or storing those "wrong-floats" (user entered).

This just makes all those functions to be stricter, so any attempt
of passing to them a wrong float will fail with a clear TypeError.

Any existing case must be converted to a corrrect (X.Y) format, using
unformat_float() or PARAM_LOCALISEDFLOAT before any processing.

Localised floats cannot be used.

Also, fix all the places where those functions are called from
files having strict_types enabled because, with that, now float-like
strings are not accepted any more. Luckily, there is only case,
within the grade/classes/component_gradeitem.php file, and it has
been fixed by casting the float-like string coming from DB to float.
2022-03-03 12:19:02 +01:00
..
amd MDL-73915 js: Drop support for IE and android 2022-02-23 08:55:20 +08:00
classes MDL-73824 gradebook: Stricter float check to some gradelib functions 2022-03-03 12:19:02 +01:00
edit MDL-73645 grades: Update breadcrumb nodes 2022-03-02 13:00:25 +08:00
export MDL-73645 grades: Update breadcrumb nodes 2022-03-02 13:00:25 +08:00
grading MDL-73915 js: Drop support for IE and android 2022-02-23 08:55:20 +08:00
import MDL-73645 grades: Update breadcrumb nodes 2022-03-02 13:00:25 +08:00
report MDL-73915 js: Drop support for IE and android 2022-02-23 08:55:20 +08:00
templates MDL-73595 theme_boost: make tertiary nav more distinct 2022-02-28 13:07:52 +01:00
tests MDL-73476 phpunit: events, external and search tescase names 2022-01-14 16:18:39 +01:00
index.php
lib.php MDL-72873 core_grades: Create method that resets all static caches 2021-12-16 00:10:13 +08:00
querylib.php MDL-63422 general: review core loop / switch / case / continue 2018-10-31 00:17:59 +01:00
renderer.php MDL-72873 core_grades: Add general tertiary navigation 2021-12-16 00:10:13 +08:00
upgrade.txt MDL-72873 core_grades: Deprecate select_in_gradebook_tabs() 2021-12-16 00:10:13 +08:00