Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-32634

Items rated as 'mostly connected knowing' shown rated as 'separate and connected'

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.2.2
    • Fix Version/s: None
    • Component/s: Ratings
    • Labels:
      None
    • Affected Branches:
      MOODLE_22_STABLE

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: