-
Bug
-
Resolution: Fixed
-
Minor
-
4.2
-
MOODLE_402_STABLE
-
MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
-
MDL-78170-401 -
- Covered by automated tests (PHPUnit)
The average of ratings for a glossary entry is calculated differently depending on the database, but the result should be consistent in all environments.
See attached behat test to reproduce the bug. I've run the tests using moodle-docker; using the pgsql database the average is calculated as 0.5, whereas using mssql it is calculated as 0 and the test fails.