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

Ellipses incorrectly displayed for My Moodle page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.9.6
    • 1.9.4, 1.9.5, 2.0
    • Dashboard (My home)
    • None
    • MOODLE_19_STABLE, MOODLE_20_STABLE
    • MOODLE_19_STABLE
    • Easy

      At the bottom of the my moodle page, ellipsis (...) is displayed when the user has more courses than the preference setting allows to be displayed (although it didn't really work that way). The way it really worked was this:

      The number of courses used to be hard coded at 21. There courses we displayed, and if the count was >20, then the ellipsis would be displayed. I get the felling this was originally only supposed to display the first 20 courses, and the 21 was to allow a marker that there are more. But the implementation showed all the courses returned (all 21). If you have 21 courses, they will all show plus you get the ellipsis, not a correct behavior.

      Now the 21 was changed to a preference setting in MDL-13224, but the ellipsis setting was never changed, so if the preference is set to 50, and 32 courses are displayed, the ellipsis will still show.

      The first attached diff should show how to correct that problem, but it doesn't correct the 1 off problem I described above.

      The second diff would correct both problems.

      Both diffs are off of current MOODLE_19_STABLE and I HAVE NOT tested them extensively yet.

        1. mymoodle2.diff
          0.6 kB
        2. mymoodle1.diff
          0.3 kB

            emerrill Eric Merrill
            emerrill Eric Merrill
            Andrew Davis Andrew Davis
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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