svn commit: r990004 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/storage/FacilityContactMechServices.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r990004 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/storage/FacilityContactMechServices.xml

jonesde
Author: jonesde
Date: Fri Aug 27 03:06:24 2010
New Revision: 990004

URL: http://svn.apache.org/viewvc?rev=990004&view=rev
Log:
Fixed issue with createFacilityContactMech where purpose was not being created, it is created now

Modified:
    ofbiz/trunk/applications/product/script/org/ofbiz/product/storage/FacilityContactMechServices.xml

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/storage/FacilityContactMechServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/storage/FacilityContactMechServices.xml?rev=990004&r1=990003&r2=990004&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/storage/FacilityContactMechServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/storage/FacilityContactMechServices.xml Fri Aug 27 03:06:24 2010
@@ -47,6 +47,12 @@ under the License.
         <now-timestamp field="newValue.fromDate"/>
 
         <create-value value-field="newValue"/>
+        
+        <!-- now create the FacilityContactMechPurpose record -->
+        <make-value value-field="facilityContactMechPurpose" entity-name="FacilityContactMechPurpose"/>
+        <set-pk-fields map="newValue" value-field="facilityContactMechPurpose"/>
+        <set field="facilityContactMechPurpose.contactMechPurposeTypeId" from-field="parameters.contactMechPurposeTypeId"/>
+        <create-value value-field="facilityContactMechPurpose"/>
     </simple-method>
 
     <simple-method method-name="updateFacilityContactMech" short-description="Update a FacilityContactMech">