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

Gradebook: after hiding one category, console errors display and it is not possible to hide further categories

    XMLWordPrintable

    Details

    • Test Plan:
      Hide

      With the browser console open:

      1. Create at least 2 gradebook categories 
      2. Create a couple of gradebook items for each gradebook category
      3. Hide one of the category columns - there shouldn't be any errors in the console
      4. Try to hide the other category column - it should be hidden and no console errors
      Show
      With the browser console open: Create at least 2 gradebook categories  Create a couple of gradebook items for each gradebook category Hide one of the category columns - there shouldn't be any errors in the console Try to hide the other category column - it should be hidden and no console errors

      Description

      While testing SAK-41269, gradebook with categories, there were some console errors and after hiding a category, other categories could not be hidden.

      When hiding the first category:

      VM15598 gradebook-gbgrade-table.js:871 Uncaught TypeError: Cannot read property 'data' of undefined
      at n.cells (VM15598 gradebook-gbgrade-table.js:871)
      at E.Core.getCellMeta (VM15599 handsontable.full.min.js:30)
      at E.Core._getColWidthFromSettings (VM15599 handsontable.full.min.js:30)
      at getColWidth (VM15599 handsontable.full.min.js:30)
      at R.getColumnWidth (VM15599 handsontable.full.min.js:29)
      at R.getStretchedColumnWidth (VM15599 handsontable.full.min.js:29)
      at m.createColElement (VM15599 handsontable.full.min.js:39)
      at VM15599 handsontable.full.min.js:39
      at u (VM15599 handsontable.full.min.js:33)
      at VM15599 handsontable.full.min.js:39

       

      When trying to hide another category (which doesn't work):

      VM15599 handsontable.full.min.js:33 Uncaught TypeError: Cannot read property 'offsetHeight' of undefined
      at x (VM15599 handsontable.full.min.js:33)
      at VM15599 handsontable.full.min.js:39
      at u (VM15599 handsontable.full.min.js:33)
      at m.getHeights (VM15599 handsontable.full.min.js:39)
      at k.calculateRowsHeight (VM15599 handsontable.full.min.js:34)
      at i (VM15599 handsontable.full.min.js:34)
      at k.calculateAllRowsHeight (VM15599 handsontable.full.min.js:34)
      at k.recalculateAllRowsHeight (VM15599 handsontable.full.min.js:34)
      at k.onAfterLoadData (VM15599 handsontable.full.min.js:34)
      at E.Core.<anonymous> (VM15599 handsontable.full.min.js:34)

      Full information for both in attached file

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  Unassigned Unassigned
                  Reporter:
                  agschmidt Andrea Schmidt
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration