Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-543

Fix "Path starts with" evaluation in nuxeo-filter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.2, 2.2.0
    • Fix Version/s: 1.0.3, 2.2.2, 2.3.1
    • Component/s: UI
    • Tags:
    • Backlog priority:
      900
    • Sprint:
      nxGang Sprint 10.1.5
    • Story Points:
      1

      Description

      The nuxeo-filter element does not properly check the document path.
      Indeed here:
      https://github.com/nuxeo/nuxeo-ui-elements/blob/master/nuxeo-filters-behavior.html#L83

          pathMatches: function(doc, regex) {
            return doc && doc.path && new RegExp(regex).test(regex);
          },
      

      should be:

          pathMatches: function(doc, regex) {
            return doc && doc.path && new RegExp(regex).test(doc.path);
          },
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 30 minutes
                  30m