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

Cannot delete repeatable nested element containing a Date field in WCM

    Details

      Description

      Repeatable nested fields which contain a Date field cannot be deleted.

      Steps to reproduce

      • Create a nested WCM structure
        • Root: separator, repeatable = true
          • Nested: date field
      • Create a template
      • Create a new content based on this structure
      • Click on the  Button to add a new element
      • Try to delete the new element using the  Button

      Expected behaviour

      • The new element is being removed

      Actual behaviour

      • A Javascript error occurs when pressing the  Button
      • Another Javascript error occurs when pressing the  Button
      • The new element is not removed
      • The new element cannot be re-ordered using drag and drop

      Additional information

      The following Javascript error is shown in the Chrome console when pressing the  Button:

      Uncaught TypeError: Cannot read property 'getDate' of undefined
      at h.getValue (?browserId=other&minifierType=&languageId=de_DE&b=7004&t=1520864605357&/o/frontend-js-web/aui/aui-image-viewer-base/aui-image-viewer-base-min.js&/o/frontend-js-web/aui/aui-image-viewer-multiple/aui-image-viewer-multiple-min.js&/o/frontend-js-web/aui/aui-image-viewer-slideshow/aui-image-viewer-slideshow-min.js&/o/frontend-js-web/aui/aui-image-viewer/aui-image-viewer-min.js&/o/frontend-js-web/aui/aui-map/aui-map-min.js&/o/frontend-js-web/aui/aui-set/aui-set-min.js&/o/frontend-js-web/aui/aui-sortable-list/aui-sortable-list-min.js&/o/frontend-js-web/liferay/item_selector_dialog.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_task.js&/o/layout-taglib/layouts_tree/js/layouts_tree_selectable.js&/o/frontend-js-web/liferay/translation_manager.js&/o/dynamic-data-mapping-web/js/ddm_form.js&/o/journal-web/js/main.js&/o/frontend-js-web/aui/aui-datepicker-delegate/aui-datepicker-delegate-min.js:59)
      at h.syncValueUI (?browserId=other&minifierType=&languageId=de_DE&b=7004&t=1520864605357&/o/frontend-js-web/aui/aui-image-viewer-base/aui-image-viewer-base-min.js&/o/frontend-js-web/aui/aui-image-viewer-multiple/aui-image-viewer-multiple-min.js&/o/frontend-js-web/aui/aui-image-viewer-slideshow/aui-image-viewer-slideshow-min.js&/o/frontend-js-web/aui/aui-image-viewer/aui-image-viewer-min.js&/o/frontend-js-web/aui/aui-map/aui-map-min.js&/o/frontend-js-web/aui/aui-set/aui-set-min.js&/o/frontend-js-web/aui/aui-sortable-list/aui-sortable-list-min.js&/o/frontend-js-web/liferay/item_selector_dialog.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_task.js&/o/layout-taglib/layouts_tree/js/layouts_tree_selectable.js&/o/frontend-js-web/liferay/translation_manager.js&/o/dynamic-data-mapping-web/js/ddm_form.js&/o/journal-web/js/main.js&/o/frontend-js-web/aui/aui-datepicker-delegate/aui-datepicker-delegate-min.js:53)
      at h.renderUI (?browserId=other&minifierType=&languageId=de_DE&b=7004&t=1520864605357&/o/frontend-js-web/aui/aui-image-viewer-base/aui-image-viewer-base-min.js&/o/frontend-js-web/aui/aui-image-viewer-multiple/aui-image-viewer-multiple-min.js&/o/frontend-js-web/aui/aui-image-viewer-slideshow/aui-image-viewer-slideshow-min.js&/o/frontend-js-web/aui/aui-image-viewer/aui-image-viewer-min.js&/o/frontend-js-web/aui/aui-map/aui-map-min.js&/o/frontend-js-web/aui/aui-set/aui-set-min.js&/o/frontend-js-web/aui/aui-sortable-list/aui-sortable-list-min.js&/o/frontend-js-web/liferay/item_selector_dialog.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_task.js&/o/layout-taglib/layouts_tree/js/layouts_tree_selectable.js&/o/frontend-js-web/liferay/translation_manager.js&/o/dynamic-data-mapping-web/js/ddm_form.js&/o/journal-web/js/main.js&/o/frontend-js-web/aui/aui-datepicker-delegate/aui-datepicker-delegate-min.js:47)
      at YUI.<anonymous> (everything.jsp?browserId=other&themeId=classic_WAR_classictheme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.everything.files&languageId=de_DE&b=7004&t=1520864605357:745)
      at Array.forEach (<anonymous>)
      at Function.q.each.q.forEach (everything.jsp?browserId=other&themeId=classic_WAR_classictheme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.everything.files&languageId=de_DE&b=7004&t=1520864605357:430)
      at Function.a.Array.invoke (everything.jsp?browserId=other&themeId=classic_WAR_classictheme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.everything.files&languageId=de_DE&b=7004&t=1520864605357:745)
      at h.renderUI (?browserId=other&minifierType=&languageId=de_DE&b=7004&t=1520864605357&/o/frontend-js-web/aui/aui-image-viewer-base/aui-image-viewer-base-min.js&/o/frontend-js-web/aui/aui-image-viewer-multiple/aui-image-viewer-multiple-min.js&/o/frontend-js-web/aui/aui-image-viewer-slideshow/aui-image-viewer-slideshow-min.js&/o/frontend-js-web/aui/aui-image-viewer/aui-image-viewer-min.js&/o/frontend-js-web/aui/aui-map/aui-map-min.js&/o/frontend-js-web/aui/aui-set/aui-set-min.js&/o/frontend-js-web/aui/aui-sortable-list/aui-sortable-list-min.js&/o/frontend-js-web/liferay/item_selector_dialog.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_task.js&/o/layout-taglib/layouts_tree/js/layouts_tree_selectable.js&/o/frontend-js-web/liferay/translation_manager.js&/o/dynamic-data-mapping-web/js/ddm_form.js&/o/journal-web/js/main.js&/o/frontend-js-web/aui/aui-datepicker-delegate/aui-datepicker-delegate-min.js:47)
      at h.<anonymous> (?browserId=other&minifierType=&languageId=de_DE&b=7004&t=1520864605357&/o/frontend-js-web/aui/aui-image-viewer-base/aui-image-viewer-base-min.js&/o/frontend-js-web/aui/aui-image-viewer-multiple/aui-image-viewer-multiple-min.js&/o/frontend-js-web/aui/aui-image-viewer-slideshow/aui-image-viewer-slideshow-min.js&/o/frontend-js-web/aui/aui-image-viewer/aui-image-viewer-min.js&/o/frontend-js-web/aui/aui-map/aui-map-min.js&/o/frontend-js-web/aui/aui-set/aui-set-min.js&/o/frontend-js-web/aui/aui-sortable-list/aui-sortable-list-min.js&/o/frontend-js-web/liferay/item_selector_dialog.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_task.js&/o/layout-taglib/layouts_tree/js/layouts_tree_selectable.js&/o/frontend-js-web/liferay/translation_manager.js&/o/dynamic-data-mapping-web/js/ddm_form.js&/o/journal-web/js/main.js&/o/frontend-js-web/aui/aui-datepicker-delegate/aui-datepicker-delegate-min.js:51)
      at h.success (?browserId=other&minifierType=&languageId=de_DE&b=7004&t=1520864605357&/o/frontend-js-web/aui/aui-image-viewer-base/aui-image-viewer-base-min.js&/o/frontend-js-web/aui/aui-image-viewer-multiple/aui-image-viewer-multiple-min.js&/o/frontend-js-web/aui/aui-image-viewer-slideshow/aui-image-viewer-slideshow-min.js&/o/frontend-js-web/aui/aui-image-viewer/aui-image-viewer-min.js&/o/frontend-js-web/aui/aui-map/aui-map-min.js&/o/frontend-js-web/aui/aui-set/aui-set-min.js&/o/frontend-js-web/aui/aui-sortable-list/aui-sortable-list-min.js&/o/frontend-js-web/liferay/item_selector_dialog.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_task.js&/o/layout-taglib/layouts_tree/js/layouts_tree_selectable.js&/o/frontend-js-web/liferay/translation_manager.js&/o/dynamic-data-mapping-web/js/ddm_form.js&/o/journal-web/js/main.js&/o/frontend-js-web/aui/aui-datepicker-delegate/aui-datepicker-delegate-min.js:44)

       

      The following Javascript error is shown in the Chrome console when pressing the  Button:

      Uncaught TypeError: Cannot read property 'destroy' of undefined
      at h.unregisterRepeatable (?browserId=other&minifierType=&languageId=de_DE&b=7004&t=1520864605357&/o/frontend-js-web/aui/aui-image-viewer-base/aui-image-viewer-base-min.js&/o/frontend-js-web/aui/aui-image-viewer-multiple/aui-image-viewer-multiple-min.js&/o/frontend-js-web/aui/aui-image-viewer-slideshow/aui-image-viewer-slideshow-min.js&/o/frontend-js-web/aui/aui-image-viewer/aui-image-viewer-min.js&/o/frontend-js-web/aui/aui-map/aui-map-min.js&/o/frontend-js-web/aui/aui-set/aui-set-min.js&/o/frontend-js-web/aui/aui-sortable-list/aui-sortable-list-min.js&/o/frontend-js-web/liferay/item_selector_dialog.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_task.js&/o/layout-taglib/layouts_tree/js/layouts_tree_selectable.js&/o/frontend-js-web/liferay/translation_manager.js&/o/dynamic-data-mapping-web/js/ddm_form.js&/o/journal-web/js/main.js&/o/frontend-js-web/aui/aui-datepicker-delegate/aui-datepicker-delegate-min.js:107)
      at h._afterUpdateRepeatableFields (?browserId=other&minifierType=&languageId=de_DE&b=7004&t=1520864605357&/o/frontend-js-web/aui/aui-image-viewer-base/aui-image-viewer-base-min.js&/o/frontend-js-web/aui/aui-image-viewer-multiple/aui-image-viewer-multiple-min.js&/o/frontend-js-web/aui/aui-image-viewer-slideshow/aui-image-viewer-slideshow-min.js&/o/frontend-js-web/aui/aui-image-viewer/aui-image-viewer-min.js&/o/frontend-js-web/aui/aui-map/aui-map-min.js&/o/frontend-js-web/aui/aui-set/aui-set-min.js&/o/frontend-js-web/aui/aui-sortable-list/aui-sortable-list-min.js&/o/frontend-js-web/liferay/item_selector_dialog.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_radio.js&/o/layout-taglib/layouts_tree/js/layouts_tree_node_task.js&/o/layout-taglib/layouts_tree/js/layouts_tree_selectable.js&/o/frontend-js-web/liferay/translation_manager.js&/o/dynamic-data-mapping-web/js/ddm_form.js&/o/journal-web/js/main.js&/o/frontend-js-web/aui/aui-datepicker-delegate/aui-datepicker-delegate-min.js:109)
      at a.Subscriber._notify (everything.jsp?browserId=other&themeId=classic_WAR_classictheme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.everything.files&languageId=de_DE&b=7004&t=1520864605357:829)
      at a.Subscriber.notify (everything.jsp?browserId=other&themeId=classic_WAR_classictheme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.everything.files&languageId=de_DE&b=7004&t=1520864605357:830)
      at a.CustomEvent._notify (everything.jsp?browserId=other&themeId=classic_WAR_classictheme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.everything.files&languageId=de_DE&b=7004&t=1520864605357:826)
      at a.CustomEvent._procSubs (everything.jsp?browserId=other&themeId=classic_WAR_classictheme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.everything.files&languageId=de_DE&b=7004&t=1520864605357:827)
      at a.CustomEvent.q.fireComplex (everything.jsp?browserId=other&themeId=classic_WAR_classictheme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.everything.files&languageId=de_DE&b=7004&t=1520864605357:845)
      at a.CustomEvent._fire (everything.jsp?browserId=other&themeId=classic_WAR_classictheme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.everything.files&languageId=de_DE&b=7004&t=1520864605357:826)
      at a.CustomEvent.fire (everything.jsp?browserId=other&themeId=classic_WAR_classictheme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.everything.files&languageId=de_DE&b=7004&t=1520864605357:826)
      at h.b.bubble (everything.jsp?browserId=other&themeId=classic_WAR_classictheme&colorSchemeId=01&minifierType=js&minifierBundleId=javascript.everything.files&languageId=de_DE&b=7004&t=1520864605357:850)

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 32 weeks, 5 days ago

                Packages

                Version Package
                7.0.0 DXP FP45
                7.0.6 CE GA7
                7.0.0 DXP SP8
                7.0.X
                7.1.0 M2
                7.1.X
                Master