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

Fix <nuxeo-path-suggestion> validation when used in Drawer Item Search

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Filters, Layouts, UI

      Description

      1. In Studio Modeler > Page Providers, create a new Page Provider. In Predicates, bind the ecm:path using the STARTSWITH operator. 
      2. In Studio Designer > Layouts > Page Providers, configure search-form.html with a <nuxeo-path-suggestion> element (rather than a <nuxeo-input> element). Use automatic configuration for search-results.html.
      3. In Studio Designer > Drawer > Drawer Items, create a new Search. Bind the Page Provider created in step 1 using the provider field.
      4. Save/commit the Studio project and reload the Nuxeo instance.
      5. In Web UI, navigate to the created Drawer Item, and attempt to filter into a folderish document using the path suggestion element twice (using two clicks of the "Search" button).
      6. An uncaught TypeError is displayed in the dev tools console (see attachment). The search becomes unresponsive to additional clicks.

       

       

        Attachments

        1. console_debug.PNG
          186 kB
          Henry Miskaryan
        2. drawer_settings.PNG
          35 kB
          Henry Miskaryan
        3. pageprovider_settings.PNG
          11 kB
          Henry Miskaryan

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                hmiskaryan Henry Miskaryan
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: