Description
Steps to reproduce the issue:
- Go HR component.
- Click on Training Tab.
- Click on any event listed over training calendar to navigate over modify event screen.
Here is the error message appearing on page when user tried to navigate on any event from training calendar.
java.lang.IllegalArgumentException: Error running script at location [component:///workeffort/groovyScripts/ical/IsCalOwner.groovy]: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '[GenericEntity:WorkEffortPartyAssignment][assignedByUserLoginId,admin(java.lang.String)][availabilityStatusId,null()][comments,null()][createdStamp,2018-01-19 16:49:36.69(java.sql.Timestamp)][createdTxStamp,2018-01-19 16:49:36.616(java.sql.Timestamp)][delegateReasonEnumId,null()][expectationEnumId,null()][facilityId,null()][fromDate,2018-01-19 16:49:36.69(java.sql.Timestamp)][lastUpdatedStamp,2018-01-19 16:49:36.69(java.sql.Timestamp)][lastUpdatedTxStamp,2018-01-19 16:49:36.616(java.sql.Timestamp)][mustRsvp,null()][partyId,admin(java.lang.String)][roleTypeId,CAL_OWNER(java.lang.String)][statusDateTime,null()][statusId,PRTYASGN_ASSIGNED(java.lang.String)][thruDate,null()][workEffortId,10041(java.lang.String)]' with class 'org.apache.ofbiz.entity.GenericValue' to class 'java.util.List' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: java.util.List(org.apache.ofbiz.entity.GenericValue)