Details
Description
Universal Discovery Widget fails to open when Product Catalog is not configured for a repository.
Setup:
In config/packages/ibexa.yaml remove the:
product_catalog:
engine: default
part from the ibexa.repositories.default configuration and clear the cache.
Steps to reproduce:
1. Login as admin
2. Go to Content -> Content structure
3. Start creating a new Content Item: Article
4. In the "Intro" field select the "Embed" richtext option
Expected:
UDW opens
Actual:
UDW does not open. The following is visible in the browser console:
TypeError: productTypes is undefined loadProductTypes http://v3_2.local/assets/ibexa/build/ibexa-admin-ui-udw-extras-js.js:2831 UniversalDiscoveryModule http://v3_2.local/assets/ibexa/build/ibexa-admin-ui-udw-tabs-js.js:8672 UniversalDiscoveryModule http://v3_2.local/assets/ibexa/build/ibexa-admin-ui-udw-tabs-js.js:8671 React 13 selectContent http://v3_2.local/assets/ibexa/build/ibexa-admin-ui-content-edit-parts-js.js:9736 chooseContent http://v3_2.local/assets/richtext/build/ibexa-richtext-onlineeditor-js.js:122258 fire http://v3_2.local/assets/richtext/build/ibexa-richtext-onlineeditor-js.js:108972 click http://v3_2.local/assets/richtext/build/ibexa-richtext-onlineeditor-js.js:88489 callback http://v3_2.local/assets/richtext/build/ibexa-richtext-onlineeditor-js.js:98024 fire http://v3_2.local/assets/richtext/build/ibexa-richtext-onlineeditor-js.js:108972 domListener http://v3_2.local/assets/richtext/build/ibexa-richtext-onlineeditor-js.js:106130 react-dom.production.min.js:141:274 Uncaught CKEditorError: productTypes is undefined Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-productTypes is undefined loadProductTypes http://v3_2.local/assets/ibexa/build/ibexa-admin-ui-udw-extras-js.js:2831 UniversalDiscoveryModule http://v3_2.local/assets/ibexa/build/ibexa-admin-ui-udw-tabs-js.js:8672 UniversalDiscoveryModule http://v3_2.local/assets/ibexa/build/ibexa-admin-ui-udw-tabs-js.js:8671 React 13 selectContent http://v3_2.local/assets/ibexa/build/ibexa-admin-ui-content-edit-parts-js.js:9736 chooseContent http://v3_2.local/assets/richtext/build/ibexa-richtext-onlineeditor-js.js:122258 fire http://v3_2.local/assets/richtext/build/ibexa-richtext-onlineeditor-js.js:108972 click http://v3_2.local/assets/richtext/build/ibexa-richtext-onlineeditor-js.js:88489 callback http://v3_2.local/assets/richtext/build/ibexa-richtext-onlineeditor-js.js:98024 fire http://v3_2.local/assets/richtext/build/ibexa-richtext-onlineeditor-js.js:108972 domListener http://v3_2.local/assets/richtext/build/ibexa-richtext-onlineeditor-js.js:106130 ibexa-richtext-onlineeditor-js.js:103826:394