-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Incomplete
-
Affects Version/s: 2.4.0
-
Fix Version/s: None
-
Component/s: Selectivity, UI, Widgets
-
Tags:
When using nuxeo-dropdown-aggregation in a page provider search form, switching between saved searches that contain values for the dropdown aggregates doesn't work.
An error is raised after nuxeo-selectivity's _resolveEntry returns no value:
Uncaught TypeError: Cannot convert undefined or null to object at hasOwnProperty (<anonymous>) at nuxeo-app.html-236.js:494 at Array.find (<anonymous>) at HTMLElement._idFunction (nuxeo-app.html-236.js:494) at prep (nuxeo-app.html-236.js:256) at Array.map (<anonymous>) at nuxeo-app.html-236.js:265 at HTMLElement._initSelection (nuxeo-app.html-236.js:421) at Object.initSelection (nuxeo-app.html-236.js:264) at MultipleInput.setValue (nuxeo-app.html-235.js:5635)
I found that the loop in _resolveEntry doesn't find an existing value. In that case, this function doesn't return a value.