Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-95144

[New Form Builder] The created form is not properly loaded after User default language is changed (workaround: refresh the page)

    Details

    • Fix Priority:
      3
    • Sprint:
      App_Builder_7.3_5

      Description

      Summary:
      The created form is not properly loaded after User default language is changed (workaround: refresh the page).

      Steps to reproduce:

      1. Go to Content & Data > Forms > Create a Form (add Title, Description and a Text Field);
      2. Go to Account Settings (User avatar) > Change the default language (section: General > Information > Personal Information > Language) to Spanish;
      3. Go back to Content & Data > Forms > and open the created form to edit it;
      4. Observe that the form is not showing elements (NOT OK);
      5. Refresh the page and see that the elements will appear (workaround); 

      Expected result:
      The created form should be properly loaded after User default language is changed.

      Actual result:
      The created form is not properly loaded after User default language is changed.

      Console log when trying to open the created form after user default language is changed:

      ?browserId=other&minifierType=&languageId=es_ES&b=7210&t=1556923705541&/o/frontend-js-web/aui/widget-parent/widget-parent-min.js&/o/frontend-js-web/aui/tabview-base/tabview-base-min.js&/o/frontend-js-web/aui/gesture-simulate/gesture-simulate-min.js&/o/frontend-js-web/aui/tabview/tabview-min.js&/o/frontend-js-web/aui/aui-tabview/aui-tabview-min.js&/o/dynamic-data-mapping-form-renderer/js/layout_visitor.js&/o/dynamic-data-mapping-form-renderer/js/form_context_support.js&/o/dynamic-data-mapping-form-renderer/js/form_evaluation_support.js&/o/dynamic-data-mapping-form-renderer/js/form_feedback_support.js&/o/dynamic-data-mapping-form-renderer/js/nested_fields_support.js&/o/frontend-js-web/aui/aui-pagination/aui-pagination-min.js&/o/dynamic-data-mapping-form-renderer/js/paginated.js&/o/dynamic-data-mapping-form-renderer/js/wizard.js&/o/dynamic-data-mapping-form-renderer/js/form_pagination_support.js&/o/dynamic-data-mapping-form-renderer/js/form_tabs_support.js:19 Uncaught TypeError: Cannot read property 'get' of null
      at component._createField (?browserId=other&minifierType=&languageId=es_ES&b=7210&t=1556923705541&/o/frontend-js-web/aui/widget-parent/widget-parent-min.js&/o/frontend-js-web/aui/tabview-base/tabview-base-min.js&/o/frontend-js-web/aui/gesture-simulate/gesture-simulate-min.js&/o/frontend-js-web/aui/tabview/tabview-min.js&/o/frontend-js-web/aui/aui-tabview/aui-tabview-min.js&/o/dynamic-data-mapping-form-renderer/js/layout_visitor.js&/o/dynamic-data-mapping-form-renderer/js/form_context_support.js&/o/dynamic-data-mapping-form-renderer/js/form_evaluation_support.js&/o/dynamic-data-mapping-form-renderer/js/form_feedback_support.js&/o/dynamic-data-mapping-form-renderer/js/nested_fields_support.js&/o/frontend-js-web/aui/aui-pagination/aui-pagination-min.js&/o/dynamic-data-mapping-form-renderer/js/paginated.js&/o/dynamic-data-mapping-form-renderer/js/wizard.js&/o/dynamic-data-mapping-form-renderer/js/form_pagination_support.js&/o/dynamic-data-mapping-form-renderer/js/form_tabs_support.js:19)
      at component.<anonymous> (?browserId=other&minifierType=&languageId=es_ES&b=7210&t=1556923705541&/o/frontend-js-web/aui/widget-parent/widget-parent-min.js&/o/frontend-js-web/aui/tabview-base/tabview-base-min.js&/o/frontend-js-web/aui/gesture-simulate/gesture-simulate-min.js&/o/frontend-js-web/aui/tabview/tabview-min.js&/o/frontend-js-web/aui/aui-tabview/aui-tabview-min.js&/o/dynamic-data-mapping-form-renderer/js/layout_visitor.js&/o/dynamic-data-mapping-form-renderer/js/form_context_support.js&/o/dynamic-data-mapping-form-renderer/js/form_evaluation_support.js&/o/dynamic-data-mapping-form-renderer/js/form_feedback_support.js&/o/dynamic-data-mapping-form-renderer/js/nested_fields_support.js&/o/frontend-js-web/aui/aui-pagination/aui-pagination-min.js&/o/dynamic-data-mapping-form-renderer/js/paginated.js&/o/dynamic-data-mapping-form-renderer/js/wizard.js&/o/dynamic-data-mapping-form-renderer/js/form_pagination_support.js&/o/dynamic-data-mapping-form-renderer/js/form_tabs_support.js:20)
      at component._visitField (?browserId=other&minifierType=&languageId=es_ES&b=7210&t=1556923705541&/o/frontend-js-web/aui/widget-parent/widget-parent-min.js&/o/frontend-js-web/aui/tabview-base/tabview-base-min.js&/o/frontend-js-web/aui/gesture-simulate/gesture-simulate-min.js&/o/frontend-js-web/aui/tabview/tabview-min.js&/o/frontend-js-web/aui/aui-tabview/aui-tabview-min.js&/o/dynamic-data-mapping-form-renderer/js/layout_visitor.js&/o/dynamic-data-mapping-form-renderer/js/form_context_support.js&/o/dynamic-data-mapping-form-renderer/js/form_evaluation_support.js&/o/dynamic-data-mapping-form-renderer/js/form_feedback_support.js&/o/dynamic-data-mapping-form-renderer/js/nested_fields_support.js&/o/frontend-js-web/aui/aui-pagination/aui-pagination-min.js&/o/dynamic-data-mapping-form-renderer/js/paginated.js&/o/dynamic-data-mapping-form-renderer/js/wizard.js&/o/dynamic-data-mapping-form-renderer/js/form_pagination_support.js&/o/dynamic-data-mapping-form-renderer/js/form_tabs_support.js:13)
      at combo?browserId=other&minifierType=js&languageId=es_ES&b=7210&t=1556923705541&/o/frontend-js-web/aui/event-mouseenter/event-mouseenter.js&/o/frontend-js-web/aui/event-mousewheel/event-mousewheel.js&/o/frontend-js-web/aui/event-outside/event-outside.js&/o/frontend-js-web/aui/event-resize/event-resize.js&/o/frontend-js-web/aui/event-simulate/event-simulate.js&/o/frontend-js-web/aui/event-synthetic/event-synthetic.js&/o/frontend-js-web/aui/intl/intl.js&/o/frontend-js-web/aui/io-base/io-base.js&/o/frontend-js-web/aui/io-form/io-form.js&/o/frontend-js-web/aui/io-queue/io-queue.js&/o/frontend-js-web/aui/io-upload-iframe/io-upload-iframe.js&/o/frontend-js-web/aui/io-xdr/io-xdr.js&/o/frontend-js-web/aui/json-parse/json-parse.js&/o/frontend-js-web/aui/json-stringify/json-stringify.js&/o/frontend-js-web/aui/node-base/node-base.js&/o/frontend-js-web/aui/node-core/node-core.js&/o/frontend-js-web/aui/node-event-delegate/node-event-delegate.js&/o/frontend-js-web/aui/node-event-simulate/node-event-simulate.js&/o/frontend-js-web/aui/node-focusmanager/node-focusmanager.js&/o/frontend-js-web/aui/node-pluginhost/node-pluginhost.js&/o/frontend-js-web/aui/node-screen/node-screen.js&/o/frontend-js-web/aui/node-style/node-style.js&/o/frontend-js-web/aui/oop/oop.js&/o/frontend-js-web/aui/plugin/plugin.js&/o/frontend-js-web/aui/pluginhost-base/pluginhost-base.js&/o/frontend-js-web/aui/pluginhost-config/pluginhost-config.js&/o/frontend-js-web/aui/querystring-stringify-simple/querystring-stringify-simple.js&/o/frontend-js-web/aui/queue-promote/queue-promote.js&/o/frontend-js-web/aui/selector-css2/selector-css2.js&/o/frontend-js-web/aui/selector-css3/selector-css3.js&/o/frontend-js-web/aui/selector-native/selector-native.js&/o/frontend-js-web/aui/selector/selector.js&/o/frontend-js-web/aui/widget-base/widget-base.js&/o/frontend-js-web/aui/widget-htmlparser/widget-htmlparser.js&/o/frontend-js-web/aui/widget-skin/widget-skin.js&/o/frontend-js-web/aui/widget-uievents/widget-uievents.js:157
      at Array.map (<anonymous>)
      at component._visitFields (?browserId=other&minifierType=&languageId=es_ES&b=7210&t=1556923705541&/o/frontend-js-web/aui/widget-parent/widget-parent-min.js&/o/frontend-js-web/aui/tabview-base/tabview-base-min.js&/o/frontend-js-web/aui/gesture-simulate/gesture-simulate-min.js&/o/frontend-js-web/aui/tabview/tabview-min.js&/o/frontend-js-web/aui/aui-tabview/aui-tabview-min.js&/o/dynamic-data-mapping-form-renderer/js/layout_visitor.js&/o/dynamic-data-mapping-form-renderer/js/form_context_support.js&/o/dynamic-data-mapping-form-renderer/js/form_evaluation_support.js&/o/dynamic-data-mapping-form-renderer/js/form_feedback_support.js&/o/dynamic-data-mapping-form-renderer/js/nested_fields_support.js&/o/frontend-js-web/aui/aui-pagination/aui-pagination-min.js&/o/dynamic-data-mapping-form-renderer/js/paginated.js&/o/dynamic-data-mapping-form-renderer/js/wizard.js&/o/dynamic-data-mapping-form-renderer/js/form_pagination_support.js&/o/dynamic-data-mapping-form-renderer/js/form_tabs_support.js:13)
      at component._visitColumn (?browserId=other&minifierType=&languageId=es_ES&b=7210&t=1556923705541&/o/frontend-js-web/aui/widget-parent/widget-parent-min.js&/o/frontend-js-web/aui/tabview-base/tabview-base-min.js&/o/frontend-js-web/aui/gesture-simulate/gesture-simulate-min.js&/o/frontend-js-web/aui/tabview/tabview-min.js&/o/frontend-js-web/aui/aui-tabview/aui-tabview-min.js&/o/dynamic-data-mapping-form-renderer/js/layout_visitor.js&/o/dynamic-data-mapping-form-renderer/js/form_context_support.js&/o/dynamic-data-mapping-form-renderer/js/form_evaluation_support.js&/o/dynamic-data-mapping-form-renderer/js/form_feedback_support.js&/o/dynamic-data-mapping-form-renderer/js/nested_fields_support.js&/o/frontend-js-web/aui/aui-pagination/aui-pagination-min.js&/o/dynamic-data-mapping-form-renderer/js/paginated.js&/o/dynamic-data-mapping-form-renderer/js/wizard.js&/o/dynamic-data-mapping-form-renderer/js/form_pagination_support.js&/o/dynamic-data-mapping-form-renderer/js/form_tabs_support.js:13)
      at combo?browserId=other&minifierType=js&languageId=es_ES&b=7210&t=1556923705541&/o/frontend-js-web/aui/event-mouseenter/event-mouseenter.js&/o/frontend-js-web/aui/event-mousewheel/event-mousewheel.js&/o/frontend-js-web/aui/event-outside/event-outside.js&/o/frontend-js-web/aui/event-resize/event-resize.js&/o/frontend-js-web/aui/event-simulate/event-simulate.js&/o/frontend-js-web/aui/event-synthetic/event-synthetic.js&/o/frontend-js-web/aui/intl/intl.js&/o/frontend-js-web/aui/io-base/io-base.js&/o/frontend-js-web/aui/io-form/io-form.js&/o/frontend-js-web/aui/io-queue/io-queue.js&/o/frontend-js-web/aui/io-upload-iframe/io-upload-iframe.js&/o/frontend-js-web/aui/io-xdr/io-xdr.js&/o/frontend-js-web/aui/json-parse/json-parse.js&/o/frontend-js-web/aui/json-stringify/json-stringify.js&/o/frontend-js-web/aui/node-base/node-base.js&/o/frontend-js-web/aui/node-core/node-core.js&/o/frontend-js-web/aui/node-event-delegate/node-event-delegate.js&/o/frontend-js-web/aui/node-event-simulate/node-event-simulate.js&/o/frontend-js-web/aui/node-focusmanager/node-focusmanager.js&/o/frontend-js-web/aui/node-pluginhost/node-pluginhost.js&/o/frontend-js-web/aui/node-screen/node-screen.js&/o/frontend-js-web/aui/node-style/node-style.js&/o/frontend-js-web/aui/oop/oop.js&/o/frontend-js-web/aui/plugin/plugin.js&/o/frontend-js-web/aui/pluginhost-base/pluginhost-base.js&/o/frontend-js-web/aui/pluginhost-config/pluginhost-config.js&/o/frontend-js-web/aui/querystring-stringify-simple/querystring-stringify-simple.js&/o/frontend-js-web/aui/queue-promote/queue-promote.js&/o/frontend-js-web/aui/selector-css2/selector-css2.js&/o/frontend-js-web/aui/selector-css3/selector-css3.js&/o/frontend-js-web/aui/selector-native/selector-native.js&/o/frontend-js-web/aui/selector/selector.js&/o/frontend-js-web/aui/widget-base/widget-base.js&/o/frontend-js-web/aui/widget-htmlparser/widget-htmlparser.js&/o/frontend-js-web/aui/widget-skin/widget-skin.js&/o/frontend-js-web/aui/widget-uievents/widget-uievents.js:157
      at Array.map (<anonymous>)
      at component._visitColumns (?browserId=other&minifierType=&languageId=es_ES&b=7210&t=1556923705541&/o/frontend-js-web/aui/widget-parent/widget-parent-min.js&/o/frontend-js-web/aui/tabview-base/tabview-base-min.js&/o/frontend-js-web/aui/gesture-simulate/gesture-simulate-min.js&/o/frontend-js-web/aui/tabview/tabview-min.js&/o/frontend-js-web/aui/aui-tabview/aui-tabview-min.js&/o/dynamic-data-mapping-form-renderer/js/layout_visitor.js&/o/dynamic-data-mapping-form-renderer/js/form_context_support.js&/o/dynamic-data-mapping-form-renderer/js/form_evaluation_support.js&/o/dynamic-data-mapping-form-renderer/js/form_feedback_support.js&/o/dynamic-data-mapping-form-renderer/js/nested_fields_support.js&/o/frontend-js-web/aui/aui-pagination/aui-pagination-min.js&/o/dynamic-data-mapping-form-renderer/js/paginated.js&/o/dynamic-data-mapping-form-renderer/js/wizard.js&/o/dynamic-data-mapping-form-renderer/js/form_pagination_support.js&/o/dynamic-data-mapping-form-renderer/js/form_tabs_support.js:13)
      

       

      Reproducible on:

      master 758f055954410ca7c1d8ba46b18fdd28ea9c611e

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  40 weeks, 3 days ago

                  Packages

                  Version Package