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

Grader report collapsed columns fails when activity name has trailing space.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.2.5, 4.3.2
    • Gradebook
    • MOODLE_402_STABLE, MOODLE_403_STABLE

      Activities that have a trailing whitespae character in their name cause a JavaScript error and the dropdown will not populate and the column will not hide. It also will not appear when revisiting the page if a column is collapsed. Whitespace appears to be stripped from activity names in recent versions of Moodle so this likely applies to older activities where the name was pasted with a trailing space.

      Steps

      1) Add a gradeable activity to your course
      2) Force whitespace on to the end of the activity name by appending " "
      3) Visit grader report
      4) Collapse an item
      5) Click the collapsed columns menu

      Expected

      The column is hidden from the report. The Collapsed columns dropdown is shown and is populated with the collapsed column.

      Actual

      The column remains visible in the report. The Collapsed columns dropdown is shown with 3 column place holders

       

      Console output

      first.js:4084  
      Uncaught (in promise) Object
      errorcode: "invalidresponse"
      link: "https://.../grade/report/grader/index.php?id=3729"
      message: "Invalid response value detected"
      moreinfourl: "http://docs.moodle.org/403/en/error/debug/invalidresponse"
      [[Prototype]]: Object

       

            Unassigned Unassigned
            noisyjerm Jeremy FitzPatrick
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

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