Uploaded image for project: 'Nuxeo Web UI'
  1. Nuxeo Web UI
  2. WEBUI-417

Fix "headers" property to use Object in "nuxeo-results-view" element in 10.10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 2.4.51
    • Component/s: UI
    • Release Notes Summary:
      The "headers" property is changed to Object in "nuxeo-results-view" element.
    • Backlog priority:
      700
    • Sprint:
      UI - 2021-09

      Description

      With this definition added to my -bundle.html file in Designer

          <nuxeo-results-view provider="sourcepp" headers="{ &quot;translate-directoryEntry&quot;: &quot;label&quot;}" schemas="dublincore" search-name="sourcepp" auto="true" results="sources" name="sources"></nuxeo-results-view> 
      

       I get this exception

      Uncaught TypeError: Cannot create property 'fetch-aggregate' on string '{ "translate-directoryEntry": "label"}'
          at HTMLElement._fetchAggregatesChanged (nuxeo-app.html-160.js:438)
          at Object.runObserverEffect [as fn] (nuxeo-app.html-13.js:197)
          at runEffectsForProperty (nuxeo-app.html-13.js:142)
          at runEffects (nuxeo-app.html-13.js:108)
          at HTMLElement._propertiesChanged (nuxeo-app.html-13.js:1692)
          at HTMLElement._flushProperties (nuxeo-app.html-10.js:327)
          at HTMLElement._flushProperties (nuxeo-app.html-13.js:1540)
          at HTMLElement.ready (nuxeo-app.html-13.js:1645)
          at HTMLElement.ready (nuxeo-app.html-15.js:540)
          at HTMLElement.ready (nuxeo-app.html-160.js:271)

       
      At https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/search/nuxeo-results-view.html#L185 the "headers" property should be an Object, not a String to concatenate the new values to the "headers" property.
       

      Same issue in 3.x where the element has moved to another repository: https://github.com/nuxeo/nuxeo-elements/blob/master/ui/search/nuxeo-results-view.js#L203

        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 - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 45 minutes
                  45m