Cannot create a Facility
------------------------
Key: OFBIZ-189
URL: http://issues.apache.org/jira/browse/OFBIZ-189
Project: OFBiz (The Open for Business Project)
Issue Type: Bug
Components: product
Environment: Any
Reporter: Ricardo Chavez
Priority: Critical
Attachments: FacilityScreens.patch
In opentaps v 0.9.2, facilities can't be created: the Create New Facility
screen shows the following error message:
ERROR: Facility with ID [] not found
This error seems to be caused by the CommonFacilityDecorator from version
0.9.2, which displays an error message if the 'facility' field, retrieved with
an <entity-one ...> in th <actions> section, is empty; that is the case when we
are creating a new facility, which is why the screen shows the mentioned error
message.
I don't know if this has been correcteds in the latest weekly build, so i'm
attaching a patch just in case. My solution is to set the decorator of the
EditFacility screen to the main-decorator in
product/widget/facility/CommonScreens.xml and copy the permission checking and
the tab bar from the CommonFacilityDecorator screen to the EditFacility screen
(creating a new decorator for the EditFacility screen only seemed to
complicated for a solution).
Hope this is helpful.
Regards,
-- Ricardo Chavez
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira