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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10, 3.0.5
    • Fix Version/s: 3.1.x, 3.0.6
    • Component/s: UI

      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

              • Assignee:
                rdias Ricardo Dias
                Reporter:
                tmartins Thierry Martins
                Participants:
                Reviewers:
                Gabriel Barata, Miguel Nixo, Samuel Fialho
              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 2 hours, 15 minutes
                  2h 15m