Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22525

Fix Spreadsheet error when the PageProvider definition does not contain any aggregate

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 8.10
    • Fix Version/s: 8.10-HF21, 9.10
    • Component/s: Spreadsheet, Web UI

      Description

      The javascript error:

      Uncaught TypeError: Cannot convert undefined or null to object
          at Function.keys (<anonymous>)
          at HTMLElement._show (nuxeo-spreadsheet-button.html:104)
          at handler (elements.html:3606)
          at HTMLElement.decorated (elements.html:7563)
          at HTMLElement.fire (elements.html:4383)
          at Object.fire (elements.html:3955)
          at Object.forward (elements.html:4252)
          at Object.click (elements.html:4237)
          at HTMLElement.handleNative (elements.html:3845)
      

      Caused by this line in https://github.com/nuxeo/nuxeo-platform-spreadsheet/blob/master/nuxeo-platform-spreadsheet-web-ui/src/main/resources/web/nuxeo.war/ui/nuxeo-spreadsheet/nuxeo-spreadsheet-button.html

      Object.keys(provider.aggregations).forEach(function(key)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h