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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.2.2
    • Ratings
    • 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.

            andyjdavis Andrew Davis
            anthonyforth Anthony Forth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.