You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Yogesh Naroliya (JIRA)" <ji...@apache.org> on 2018/01/19 13:40:00 UTC
[jira] [Commented] (OFBIZ-10173) Add/Modify Calender Event Screen
is Broken
[ https://issues.apache.org/jira/browse/OFBIZ-10173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16332261#comment-16332261 ]
Yogesh Naroliya commented on OFBIZ-10173:
-----------------------------------------
[~upadhyay.ratnesh] Thanks for reporting the issue, I have successfully replicated the issue.
The reported issue was due to use of *queryFirst* instead of *queryList* to get the *partyAssignments* list.
Provided a patch to fix the issue.
> Add/Modify Calender Event Screen is Broken
> ------------------------------------------
>
> Key: OFBIZ-10173
> URL: https://issues.apache.org/jira/browse/OFBIZ-10173
> Project: OFBiz
> Issue Type: Bug
> Components: humanres
> Affects Versions: Trunk
> Reporter: Ratnesh Upadhyay
> Assignee: Yogesh Naroliya
> Priority: Major
> Attachments: OFBIZ-10173.patch
>
>
> *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.
> {code:java}
> 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)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)