Author: jacopoc
Date: Wed Jul 5 03:45:58 2006
New Revision: 419208
URL:
http://svn.apache.org/viewvc?rev=419208&view=revLog:
Fixed bug reported by Christian Geisert: when creating a new facility, the message "facility not found" was shown instead of the edit facility form; I recently introduced this error when I modified the facility-decorator screen.
Modified:
incubator/ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml
Modified: incubator/ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml?rev=419208&r1=419207&r2=419208&view=diff==============================================================================
--- incubator/ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml (original)
+++ incubator/ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml Wed Jul 5 03:45:58 2006
@@ -93,13 +93,29 @@
<script location="component://product/webapp/facility/WEB-INF/actions/facility/EditFacility.bsh"/>
</actions>
<widgets>
- <decorator-screen name="CommonFacilityDecorator">
- <decorator-section name="body">
- <platform-specific>
- <html><html-template location="component://product/webapp/facility/facility/EditFacility.ftl"/></html>
- </platform-specific>
- </decorator-section>
- </decorator-screen>
+ <section>
+ <condition>
+ <not><if-empty field-name="facility"/></not>
+ </condition>
+ <widgets>
+ <decorator-screen name="CommonFacilityDecorator">
+ <decorator-section name="body">
+ <platform-specific>
+ <html><html-template location="component://product/webapp/facility/facility/EditFacility.ftl"/></html>
+ </platform-specific>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ <fail-widgets>
+ <decorator-screen name="main-decorator" location="component://product/widget/facility/CommonScreens.xml">
+ <decorator-section name="body">
+ <platform-specific>
+ <html><html-template location="component://product/webapp/facility/facility/EditFacility.ftl"/></html>
+ </platform-specific>
+ </decorator-section>
+ </decorator-screen>
+ </fail-widgets>
+ </section>
</widgets>
</section>
</screen>