[
https://issues.apache.org/jira/browse/OFBIZ-10122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16331949#comment-16331949 ]
Yogesh Naroliya commented on OFBIZ-10122:
-----------------------------------------
*Research notes and solution details:*
- To create a new workEffort requirement *AddWorkEffortRequirement* form which extends *EditRequirement* form of *order* component which overrides the target as *createRequirement* when requirement is not present and there is no request present in workEffort component to serve this target and due to this reported issue started appearing.
- To fix this issue, I have simply override the target of *AddWorkEffortRequirement* form with the correct request i.e. *createWorkEffortRequirement*. Now system will create a requirement and associate it with selected workEffort without any issue also if a user supplied requirementId then system records it in *WorkRequirementFulfillment*.
Please find attached patch to fix the reported issue. FYI, I have verified the fix over local instance and attached a screenshot for quick reference.
Thanks [~upadhyay.ratnesh] for the discussion.
> Not able to add the requirement,broken screen with the error message in workeffort component
> --------------------------------------------------------------------------------------------
>
> Key: OFBIZ-10122
> URL:
https://issues.apache.org/jira/browse/OFBIZ-10122> Project: OFBiz
> Issue Type: Bug
> Components: workeffort
> Reporter: Rubia Elza Joshep
> Assignee: Yogesh Naroliya
> Priority: Major
> Fix For: 16.11.05
>
> Attachments: OFBIZ-10122.patch, OFBIZ-10122.png, screenshot-1.png
>
>
> Steps to regenerate:
> 1) Open URL
https://demo-trunk.ofbiz.apache.org/sfa/control/Events> 2) Click on the event created.
> 3) To add the requirements of events, click on the "Requirements" button.
> 4) Add the existing requirement Id or add a new requirement. Click on Save.
> Actual: Not able to add the requirement. Broken screen with the error message.
> Note: Refer the screenshot attached.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)