Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-102664 [Dashboard] Bulk reassign workflow instances
  3. LPS-108596

[BUG] "TypeError: Cannot read property 'id' of undefined" is thrown when the user reassigns tasks after the modal is opened twice

    Details

    • Type: Technical Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: Master
    • Component/s: Workflow
    • Labels:
      None

      Description

      Current issue: When the user tries to bulk reassign tasks after opening the modal twice, the error Cannot read property 'id' of undefined is thrown to the user.

      Steps to reproduce:

      1. Associate Single Approver with blogs entry
      2. Create 10 blog instances
      3. Create at least 1 new user with Administrator Role
      4. Go to Single Approver metrics > All Items
      5. Select all tasks to be reassigned and open the reassign modal
      6. Close the reassign modal
      7. Open the reassign modal again and try to reassign the tasks

      Actual result: Error Cannot read property 'id' of undefined is thrown to the user.

       

      TypeError: Cannot read property 'id' of undefined at ?browserId=other&minifierType=&languageId=en_US&b=7310&t=1581530383321&/o/js/resolved-module/[email protected]/js/shared/components/autocomplete/Autocomplete.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-assignees-step/BulkReassignSelectAssigneesStepTable.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-assignees-step/BulkReassignSelectAssigneesStepBody.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-assignees-step/BulkReassignSelectAssigneesStepHeader.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-assignees-step/BulkReassignSelectAssigneesStep.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-tasks-step/BulkReassignSelectTasksStepTable.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-tasks-step/BulkReassignSelectTasksStepBody.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-tasks-step/BulkReassignSelectTasksStepHeader.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-tasks-step/BulkReassignSelectTasksStep.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/BulkReassignModal.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/instance-details/InstanceDetailsModal.es.js&/o/js/resolved-module/[email protected]/js/shared/hooks/usePost.es.js:123 at Object.useMemo (?browserId=other&minifierType=&languageId=en_US&b=7310&t=1581530383321&/o/js/resolved-module/[email protected]/lib/sync/sync.js&/o/js/resolved-module/[email protected]/lib/ComponentDataManager.js&/o/js/resolved-module/[email protected]/lib/ComponentRenderer.js&/o/js/resolved-module/[email protected]/lib/Component.js&/o/js/resolved-module/[email protected]/lib/ComponentRegistry.js&/o/js/resolved-module/[email protected]/lib/all/component.js&/o/js/resolved-module/[email protected]/liferay/PortletBase.es.js&/o/js/resolved-module/[email protected]/liferay/DefaultEventHandler.es.js&/o/js/resolved-module/[email protected]/liferay/ItemSelectorDialog.es.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/warning.js&/o/js/resolved-module/@frontend-taglib-clay$clayui/[email protected]/lib/index.js&/o/js/resolved-module/[email protected]/cjs/scheduler.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react-dom.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/js/render.es.js&/o/js/resolved-module/[email protected]/js/hooks/useEventListener.es.js&/o/js/resolved-module/[email protected]/js/hooks/useIsMounted.es.js&/o/js/resolved-module/[email protected]/js/hooks/useInterval.es.js&/o/js/resolved-module/[email protected]/js/hooks/usePrevious.es.js:1836) at useMemo (?browserId=other&minifierType=&languageId=en_US&b=7310&t=1581530383321&/o/js/resolved-module/[email protected]/lib/sync/sync.js&/o/js/resolved-module/[email protected]/lib/ComponentDataManager.js&/o/js/resolved-module/[email protected]/lib/ComponentRenderer.js&/o/js/resolved-module/[email protected]/lib/Component.js&/o/js/resolved-module/[email protected]/lib/ComponentRegistry.js&/o/js/resolved-module/[email protected]/lib/all/component.js&/o/js/resolved-module/[email protected]/liferay/PortletBase.es.js&/o/js/resolved-module/[email protected]/liferay/DefaultEventHandler.es.js&/o/js/resolved-module/[email protected]/liferay/ItemSelectorDialog.es.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/warning.js&/o/js/resolved-module/@frontend-taglib-clay$clayui/[email protected]/lib/index.js&/o/js/resolved-module/[email protected]/cjs/scheduler.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react-dom.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/js/render.es.js&/o/js/resolved-module/[email protected]/js/hooks/useEventListener.es.js&/o/js/resolved-module/[email protected]/js/hooks/useIsMounted.es.js&/o/js/resolved-module/[email protected]/js/hooks/useInterval.es.js&/o/js/resolved-module/[email protected]/js/hooks/usePrevious.es.js:216) at BulkReassignModal (?browserId=other&minifierType=&languageId=en_US&b=7310&t=1581530383321&/o/js/resolved-module/[email protected]/js/shared/components/autocomplete/Autocomplete.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-assignees-step/BulkReassignSelectAssigneesStepTable.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-assignees-step/BulkReassignSelectAssigneesStepBody.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-assignees-step/BulkReassignSelectAssigneesStepHeader.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-assignees-step/BulkReassignSelectAssigneesStep.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-tasks-step/BulkReassignSelectTasksStepTable.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-tasks-step/BulkReassignSelectTasksStepBody.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-tasks-step/BulkReassignSelectTasksStepHeader.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/select-tasks-step/BulkReassignSelectTasksStep.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/bulk-reassign/BulkReassignModal.es.js&/o/js/resolved-module/[email protected]/js/components/instance-list-page/modal/instance-details/InstanceDetailsModal.es.js&/o/js/resolved-module/[email protected]/js/shared/hooks/usePost.es.js:122) at Ih (?browserId=other&minifierType=&languageId=en_US&b=7310&t=1581530383321&/o/js/resolved-module/[email protected]/lib/sync/sync.js&/o/js/resolved-module/[email protected]/lib/ComponentDataManager.js&/o/js/resolved-module/[email protected]/lib/ComponentRenderer.js&/o/js/resolved-module/[email protected]/lib/Component.js&/o/js/resolved-module/[email protected]/lib/ComponentRegistry.js&/o/js/resolved-module/[email protected]/lib/all/component.js&/o/js/resolved-module/[email protected]/liferay/PortletBase.es.js&/o/js/resolved-module/[email protected]/liferay/DefaultEventHandler.es.js&/o/js/resolved-module/[email protected]/liferay/ItemSelectorDialog.es.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/warning.js&/o/js/resolved-module/@frontend-taglib-clay$clayui/[email protected]/lib/index.js&/o/js/resolved-module/[email protected]/cjs/scheduler.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react-dom.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/js/render.es.js&/o/js/resolved-module/[email protected]/js/hooks/useEventListener.es.js&/o/js/resolved-module/[email protected]/js/hooks/useIsMounted.es.js&/o/js/resolved-module/[email protected]/js/hooks/useInterval.es.js&/o/js/resolved-module/[email protected]/js/hooks/usePrevious.es.js:1717) at si (?browserId=other&minifierType=&languageId=en_US&b=7310&t=1581530383321&/o/js/resolved-module/[email protected]/lib/sync/sync.js&/o/js/resolved-module/[email protected]/lib/ComponentDataManager.js&/o/js/resolved-module/[email protected]/lib/ComponentRenderer.js&/o/js/resolved-module/[email protected]/lib/Component.js&/o/js/resolved-module/[email protected]/lib/ComponentRegistry.js&/o/js/resolved-module/[email protected]/lib/all/component.js&/o/js/resolved-module/[email protected]/liferay/PortletBase.es.js&/o/js/resolved-module/[email protected]/liferay/DefaultEventHandler.es.js&/o/js/resolved-module/[email protected]/liferay/ItemSelectorDialog.es.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/warning.js&/o/js/resolved-module/@frontend-taglib-clay$clayui/[email protected]/lib/index.js&/o/js/resolved-module/[email protected]/cjs/scheduler.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react-dom.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/js/render.es.js&/o/js/resolved-module/[email protected]/js/hooks/useEventListener.es.js&/o/js/resolved-module/[email protected]/js/hooks/useIsMounted.es.js&/o/js/resolved-module/[email protected]/js/hooks/useInterval.es.js&/o/js/resolved-module/[email protected]/js/hooks/usePrevious.es.js:1922) at gk (?browserId=other&minifierType=&languageId=en_US&b=7310&t=1581530383321&/o/js/resolved-module/[email protected]/lib/sync/sync.js&/o/js/resolved-module/[email protected]/lib/ComponentDataManager.js&/o/js/resolved-module/[email protected]/lib/ComponentRenderer.js&/o/js/resolved-module/[email protected]/lib/Component.js&/o/js/resolved-module/[email protected]/lib/ComponentRegistry.js&/o/js/resolved-module/[email protected]/lib/all/component.js&/o/js/resolved-module/[email protected]/liferay/PortletBase.es.js&/o/js/resolved-module/[email protected]/liferay/DefaultEventHandler.es.js&/o/js/resolved-module/[email protected]/liferay/ItemSelectorDialog.es.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/warning.js&/o/js/resolved-module/@frontend-taglib-clay$clayui/[email protected]/lib/index.js&/o/js/resolved-module/[email protected]/cjs/scheduler.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react-dom.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/js/render.es.js&/o/js/resolved-module/[email protected]/js/hooks/useEventListener.es.js&/o/js/resolved-module/[email protected]/js/hooks/useIsMounted.es.js&/o/js/resolved-module/[email protected]/js/hooks/useInterval.es.js&/o/js/resolved-module/[email protected]/js/hooks/usePrevious.es.js:2681) at fk (?browserId=other&minifierType=&languageId=en_US&b=7310&t=1581530383321&/o/js/resolved-module/[email protected]/lib/sync/sync.js&/o/js/resolved-module/[email protected]/lib/ComponentDataManager.js&/o/js/resolved-module/[email protected]/lib/ComponentRenderer.js&/o/js/resolved-module/[email protected]/lib/Component.js&/o/js/resolved-module/[email protected]/lib/ComponentRegistry.js&/o/js/resolved-module/[email protected]/lib/all/component.js&/o/js/resolved-module/[email protected]/liferay/PortletBase.es.js&/o/js/resolved-module/[email protected]/liferay/DefaultEventHandler.es.js&/o/js/resolved-module/[email protected]/liferay/ItemSelectorDialog.es.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/warning.js&/o/js/resolved-module/@frontend-taglib-clay$clayui/[email protected]/lib/index.js&/o/js/resolved-module/[email protected]/cjs/scheduler.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react-dom.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/js/render.es.js&/o/js/resolved-module/[email protected]/js/hooks/useEventListener.es.js&/o/js/resolved-module/[email protected]/js/hooks/useIsMounted.es.js&/o/js/resolved-module/[email protected]/js/hooks/useInterval.es.js&/o/js/resolved-module/[email protected]/js/hooks/usePrevious.es.js:2421) at Zj (?browserId=other&minifierType=&languageId=en_US&b=7310&t=1581530383321&/o/js/resolved-module/[email protected]/lib/sync/sync.js&/o/js/resolved-module/[email protected]/lib/ComponentDataManager.js&/o/js/resolved-module/[email protected]/lib/ComponentRenderer.js&/o/js/resolved-module/[email protected]/lib/Component.js&/o/js/resolved-module/[email protected]/lib/ComponentRegistry.js&/o/js/resolved-module/[email protected]/lib/all/component.js&/o/js/resolved-module/[email protected]/liferay/PortletBase.es.js&/o/js/resolved-module/[email protected]/liferay/DefaultEventHandler.es.js&/o/js/resolved-module/[email protected]/liferay/ItemSelectorDialog.es.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/warning.js&/o/js/resolved-module/@frontend-taglib-clay$clayui/[email protected]/lib/index.js&/o/js/resolved-module/[email protected]/cjs/scheduler.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react-dom.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/js/render.es.js&/o/js/resolved-module/[email protected]/js/hooks/useEventListener.es.js&/o/js/resolved-module/[email protected]/js/hooks/useIsMounted.es.js&/o/js/resolved-module/[email protected]/js/hooks/useInterval.es.js&/o/js/resolved-module/[email protected]/js/hooks/usePrevious.es.js:2416) at Lj (?browserId=other&minifierType=&languageId=en_US&b=7310&t=1581530383321&/o/js/resolved-module/[email protected]/lib/sync/sync.js&/o/js/resolved-module/[email protected]/lib/ComponentDataManager.js&/o/js/resolved-module/[email protected]/lib/ComponentRenderer.js&/o/js/resolved-module/[email protected]/lib/Component.js&/o/js/resolved-module/[email protected]/lib/ComponentRegistry.js&/o/js/resolved-module/[email protected]/lib/all/component.js&/o/js/resolved-module/[email protected]/liferay/PortletBase.es.js&/o/js/resolved-module/[email protected]/liferay/DefaultEventHandler.es.js&/o/js/resolved-module/[email protected]/liferay/ItemSelectorDialog.es.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/warning.js&/o/js/resolved-module/@frontend-taglib-clay$clayui/[email protected]/lib/index.js&/o/js/resolved-module/[email protected]/cjs/scheduler.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react-dom.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/js/render.es.js&/o/js/resolved-module/[email protected]/js/hooks/useEventListener.es.js&/o/js/resolved-module/[email protected]/js/hooks/useIsMounted.es.js&/o/js/resolved-module/[email protected]/js/hooks/useInterval.es.js&/o/js/resolved-module/[email protected]/js/hooks/usePrevious.es.js:2330) Pi @ ?browserId=other&minifierType=&languageId=en_US&b=7310&t=1581530383321&/o/js/resolved-module/[email protected]/lib/sync/sync.js&/o/js/resolved-module/[email protected]/lib/ComponentDataManager.js&/o/js/resolved-module/[email protected]/lib/ComponentRenderer.js&/o/js/resolved-module/[email protected]/lib/Component.js&/o/js/resolved-module/[email protected]/lib/ComponentRegistry.js&/o/js/resolved-module/[email protected]/lib/all/component.js&/o/js/resolved-module/[email protected]/liferay/PortletBase.es.js&/o/js/resolved-module/[email protected]/liferay/DefaultEventHandler.es.js&/o/js/resolved-module/[email protected]/liferay/ItemSelectorDialog.es.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/warning.js&/o/js/resolved-module/@frontend-taglib-clay$clayui/[email protected]/lib/index.js&/o/js/resolved-module/[email protected]/cjs/scheduler.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/cjs/react-dom.production.min.js&/o/js/resolved-module/[email protected]/index.js&/o/js/resolved-module/[email protected]/js/render.es.js&/o/js/resolved-module/[email protected]/js/hooks/useEventListener.es.js&/o/js/resolved-module/[email protected]/js/hooks/useIsMounted.es.js&/o/js/resolved-module/[email protected]/js/hooks/useInterval.es.js&/o/js/resolved-module/[email protected]/js/hooks/usePrevious.es.js:2038 
      

      Expected result: the user should not see any error.

      Environment:
      master DXP: 3f4502ca3f108494b444c1d82598dbe5b8e34bda
      Updated on: Tue Feb 11 23:13:19 2020 -0800

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            dennys.barros.1 Dennys Barros.1 (Inactive)
            Recent user:
            Dennys Barros.1 (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 20 weeks ago

                Packages

                Version Package
                Master