Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-13192 stats cleanup - meta
  3. MDL-13313

Stats graphs break due to relationship to roleid

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Major Major
    • 1.9
    • 1.9
    • Administration
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

      In our environement, roleids aren't just 1, 2, 3,4 etc and this breaks most of the pretty graphs:

      Notice: Undefined offset: 41 in /var/www/moodle/course/report/stats/graph.php on line 122
      Notice: Undefined index: in /var/www/moodle/lib/graphlib.php on line 447
      Notice: Undefined index: in /var/www/moodle/lib/graphlib.php on line 1677

      This is because the colours trying to set the roles as colours on the graph (which only go up to 30). We should remove the colouring of role by roleid, and instead just use some sort of incremental counter. (And accept we can't show more than 30 roles at once).

            skodak Petr Skoda
            poltawski Dan Poltawski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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