-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
2.2.2
-
None
-
MOODLE_22_STABLE
If an item is rated as 'mostly connected knowing' in any module, it is shown as 'separate and connected' in the ratings pop up.
This appears to because of some odd code in /rating/index.php.
On line 65 $scalemenu is declared and element 3 is 'mostly connected knowing' and this is the highest numbered element (there's no 0). 2 is 'separate and connected'.
On line 106 $maxrating = count($scalemenu) - 1; (i.e. this would be 2).
On line 121 The $rating->rating is 3 initially, but is changed to $maxrating if the number is higher than $maxrating.
This causes 'separate and connected' to be displayed in error.
- has a non-specific relationship to
-
MDL-30955 Forum average of ratings incorrectly displayed
- Closed