[ 
https://issues.apache.org/jira/browse/OFBIZ-9900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16665950#comment-16665950
 ] 

Ravi Lodhi edited comment on OFBIZ-9900 at 10/27/18 6:29 AM:
-------------------------------------------------------------

EditEvent form extends EditCalEvent form and both the form have statusId field. 
EditCalEvent adds this field when the 'use-when' condition is true and form 
renderer doesn't merge fields with the same name if the use-when attribute is 
used.  Due to this when creating a new event, the list gets passed in the 
String field statusId of workEffortPartyAssignment entity. This is causing the 
error.

Need to think on the merging of form field on extending forms. But in the 
current functionality removing the statusId field from the EditEvent form 
resolve the issue as this field gets added from its parent. Provided the patch 
for the same.

Lookup used for selecting "To Party Id" is a generic party lookup but the 
Create Event process required the parties having CAL_OWNER role. If the party 
have that role everything will work fine.

 

Thanks!

 


was (Author: lodhiravi):
EditEvent form extends EditCalEvent form and both the form have statusId field. 
EditCalEvent adds this field when the 'use-when' condition is true and form 
renderer doesn't merge fields with the same name if the use-when attribute is 
used.  Due to this when creating a new event, the list gets passed in the 
String field statusId of workEffortPartyAssignment entity. This is causing the 
error.

Need to think on the merging of form field on extending forms. But in the 
current functionality removing the statusId field from the EditEvent form 
resolve the issue as this field gets added from its parent. Provided the patch 
for the same.

Thanks!

 

> Unable to create event in SFA component
> ---------------------------------------
>
>                 Key: OFBIZ-9900
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9900
>             Project: OFBiz
>          Issue Type: Bug
>          Components: workeffort
>            Reporter: Rubia Elza Joshep
>            Priority: Major
>             Fix For: Trunk
>
>         Attachments: OFBIZ-9900-Trunk.patch
>
>
> Steps-
> 1) Open URL 
> https://demo-trunk.ofbiz.apache.org/sfa/control/createWorkEffortAndPartyAssign
> 2) In SFA component, create an event by clicking on "Create new".
> 3) Fill in the information with name and select "To party id" (except admin).
> Expected: Event should be successfully created
> Actual: Unable to create event



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to