Author: jleroux
Date: Fri Jan 25 12:20:49 2008
New Revision: 615327
URL:
http://svn.apache.org/viewvc?rev=615327&view=revLog:
Fix a bug reported by Joel Blouin "Unable to add Facility to a Product" (
https://issues.apache.org/jira/browse/OFBIZ-1600) - OFBIZ-1600
Modified:
ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml?rev=615327&r1=615326&r2=615327&view=diff==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml Fri Jan 25 12:20:49 2008
@@ -90,6 +90,17 @@
<set field="checkAction" from-field="mainAction" />
<set field="alternatePermissionRoot" value="FACILITY"/>
<call-simple-method method-name="checkProductRelatedPermission" xml-resource="org/ofbiz/product/product/ProductServices.xml"/>
+ <if-empty field-name="error_list">
+ <set field="hasPermission" type="Boolean" value="true"/>
+ <field-to-result field-name="hasPermission"/>
+
+ <else>
+ <property-to-field resource="ProductUiLabels" property="ProductFacilityPermissionError" field-name="failMessage"/>
+ <set field="hasPermission" type="Boolean" value="false"/>
+ <field-to-result field-name="hasPermission"/>
+ <field-to-result field-name="failMessage"/>
+ </else>
+ </if-empty>
</simple-method>
<!-- InventoryItem methods -->