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

Fix sorting options on nuxeo-data-table

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF07, 11.1, 2021.0
    • Component/s: Web UI
    • Release Notes Summary:
      Sorting options are back on nuxeo-data-table.
    • Browser:
    • Sprint:
      nxGang Sprint 11.1.9
    • Story Points:
      3

      Description

      Sorting options have disappeared probably since https://github.com/nuxeo/nuxeo-web-ui/commit/ce727a8967b19cab6a70b27e10001ce7de75dd78#diff-1d0ba383fa18d27e79454625cfd9dff2L339

      Fix may be

      m3 fox@fox-laptop:~/workspace/nuxeo-web-ui$ git diff
      diff --git i/elements/nuxeo-results/nuxeo-document-content-behavior.js w/elements/nuxeo-results/nuxeo-document-content-behavior.js
      index 6b440534..57e5768b 100644
      --- i/elements/nuxeo-results/nuxeo-document-content-behavior.js
      +++ w/elements/nuxeo-results/nuxeo-document-content-behavior.js
      @@ -123,7 +123,7 @@ export const DocumentContentBehavior = [
           },
       
           _displaySort(document, field) {
      -      return this._canSort(document) ? field : undefined;
      +      return this._canSort(document, this.sortOptions) ? field : undefined;
           },
       
           // function used by nuxeo-data-grid and nuxeo-data-table to check if a list item is a drop target
      
      

        Attachments

          Issue Links

            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 day, 1 hour, 25 minutes
                  1d 1h 25m