Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-41137

Gradebook: "Show only this item" causes Javascript error when site has sections

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.5, 19.0
    • Fix Version/s: 12.6, 19.0, 20.0 [Tentative]
    • Component/s: Gradebook
    • Labels:
      None
    • 19 status:
      Resolved
    • 12 status:
      Resolved
    • Test Plan:
      Hide

      Open browser console (under your browser's developer tools).

      No errors are returned.

      Show
      Open browser console (under your browser's developer tools). No errors are returned.

      Description

      Steps to replicate:

      1) Login as instructor
      2) Create site *with multiple rosters *(at least two sections) with Gradebook
      3) Add two gradebook items, enter grades in the grade cells.
      4) Click View Columns -> Show only this item on the first item

      Expected result: The column chosen with grades will display.

      Actual result: Sometimes, the column appears as selected but no grades display, even though they were visible in the column in the full spreadsheet view. Setting the gradebook back to full spreadsheet view (or resetting the Gradebook) brings back the grade display.

      Sometimes, the column itself doesn't display - essentially, nothing happens.

      Console:

      Uncaught TypeError: Cannot read property '_data_' of undefined
          at n.cells (gradebook-gbgrade-table.js?version=:837)
          at E.Core.getCellMeta (handsontable.full.min.js?version=:30)
          at E.Core._getColWidthFromSettings (handsontable.full.min.js?version=:30)
          at getColWidth (handsontable.full.min.js?version=:30)
          at R.getColumnWidth (handsontable.full.min.js?version=:29)
          at R.getStretchedColumnWidth (handsontable.full.min.js?version=:29)
          at m.createColElement (handsontable.full.min.js?version=:39)
          at handsontable.full.min.js?version=:39
          at u (handsontable.full.min.js?version=:33)
          at handsontable.full.min.js?version=:39
      
      var column = GbGradeTable.instance.view.settings.columns[col]._data_;
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  a.fish@lancaster.ac.uk Adrian Fish
                  Reporter:
                  ottenhoff Sam Ottenhoff
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code