Steps to reproduce :
- Define a page provider"mypp" in Studio with 2 predicates : ecm:parentId and dc:nature
- configure the form and results layouts for this page provider
- for the form, only keep the filter on Nature
- for the results, add a column to display dc:nature
- add this line to nuxeo-xxx-custom-bundle.html
<nuxeo-slot-content name="documentCollapsiblePage" slot="DOCUMENT_VIEWS_PAGES" order="10"> <template> <nuxeo-filter document="[[document]]" expression="document.facets.indexOf('Folderish') !== -1 && document.type != 'Folder'"> <template> <nuxeo-collapsible-document-page name="view" document="[[document]]"></nuxeo-collapsible-document-page> </template> </nuxeo-filter> </template> </nuxeo-slot-content> <nuxeo-slot-content name="myppViewPage" slot="DOCUMENT_VIEWS_PAGES"> <template> <nuxeo-filter document="[[document]]" type="Folder"> <template> <nuxeo-results-view show-filters provider="mypp" schemas="dublincore" search-name="mypp" params="{"system_parentId":"[[document.uid]]"}" name="view"></nuxeo-results-view> </template> </nuxeo-filter> </template> </nuxeo-slot-content>
- Deploy the Studio package and start Nuxeo
- Create a Folder and create 2 File documents in it, with one File having dc:nature set to "Order"
- Navigate back to the Folder
- Observe the "0" in the Filters and this error in the console
nuxeo-app.html-26.js:190 Uncaught TypeError: Cannot read property 'apply' of undefined at DomApi.proto.<computed> [as querySelector] (nuxeo-app.html-26.js:190) at HTMLElement._grabResults (elements.html-105.js:71) at HTMLElement._grabResults (elements.html-105.js:87) at HTMLElement._formChanged (elements.html-105.js:60) at HTMLElement.handler (nuxeo-app.html-12.js:79) at dispatchNotifyEvent (nuxeo-app.html-13.js:286) at Object.runNotifyEffect [as fn] (nuxeo-app.html-13.js:311) at runEffectsForProperty (nuxeo-app.html-13.js:142) at runNotifyEffects (nuxeo-app.html-13.js:229) at HTMLElement._propertiesChanged (nuxeo-app.html-13.js:1695)
- If you try to use the filter, the Search button does not work any more
- clones
-
WEBUI-344 Fix display of a view using nuxeo-results-view
- Resolved
- Is referenced in