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

Gradebook sort buttons in 1.8+ yield empty list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.1
    • 1.8
    • Gradebook
    • None
    • Moodle 1.8+ of May 9, 2007, probably all 1.8 versions. PHP is 4.4.6 under Apache 1.3.37 and Linux.

      The default gradebook listing for an instructor is fine, but when a sort button is pressed, only standard page headers are shown. The various sort button URLs all include "&group=-1". When this text is appended to the URL of the standard display, an empty display results.

      I believe the problem is due to near line 318 of lib.php, where $group is compared to zero instead of -1.

      See attachment for a context diff of a fix.
      --James

            skodak Petr Skoda
            jpd James Dugal (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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