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

Data table column sort by uid:major_version,uid:minor_version only works one direction

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Web UI

      Description

        <nuxeo-data-table-column name="[[i18n('label.ui.version')]]"
                                               field="uid:major_version"
                                               sort-by="uid:major_version,uid:minor_version"
                                               flex="50">
                          <template>
                              {{_nuxeoVersion(item)}}
                          </template>
                      </nuxeo-data-table-column>
      
      

      In nuxeo document version is represented by two fields and when client wants to order documents by version both elements should be declared in column. When search is desc from high to low , it does work fine but when search is reversed then results are totally random

       

      problem might be in 
      _sortDirectionChanged(e) of PageProviderDisplayBehavior class in nuxeo ui elements. 
      Long story short. Version is a key data element and one way or another we should make it sortable.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: