[OFBiz] SVN: r7228 - in trunk/applications: ecommerce/script/org/ofbiz/ecommerce/customer party/script/org/ofbiz/party/customer party/script/org/ofbiz/party/user

sichen@svn.ofbiz.org sichen at svn.ofbiz.org
Fri Apr 7 08:24:44 CDT 2006


Author: sichen
Date: 2006-04-07 08:24:36 -0500 (Fri, 07 Apr 2006)
New Revision: 7228

Modified:
   trunk/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml
   trunk/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml
   trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml
Log:
Replaces field-to-field with set to avoid possible typecast errors.  Patch from Daniel Kunkel

Modified: trunk/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml
===================================================================
--- trunk/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml	2006-04-07 13:18:35 UTC (rev 7227)
+++ trunk/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml	2006-04-07 13:24:36 UTC (rev 7228)
@@ -281,7 +281,7 @@
         <string-to-field string="Y" field-name="isCreate" map-name="partyDataSource"/>
         <!-- get the visit from the session to get the visitId -->
         <session-to-field field-name="visit"/>
-        <field-to-field field-name="visitId" map-name="visit" to-map-name="partyDataSource"/>
+	<set from-field="visit.visitId" field="partyDataSource.visitId"/>
 
         <!-- now that everything is validated & setup, check to see if there are errors, then call the services -->
         <check-errors/>

Modified: trunk/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml
===================================================================
--- trunk/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml	2006-04-07 13:18:35 UTC (rev 7227)
+++ trunk/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml	2006-04-07 13:24:36 UTC (rev 7228)
@@ -256,7 +256,7 @@
         <string-to-field string="Y" field-name="isCreate" map-name="partyDataSource"/>
         <!-- get the visit from the session to get the visitId -->
         <session-to-field field-name="visit"/>
-        <field-to-field field-name="visitId" map-name="visit" to-map-name="partyDataSource"/>
+	<set from-field="visit.visitId" field="partyDataSource.visitId"/>
 
 
         <!-- now that everything is validated & setup, check to see if there are errors, then call the services -->

Modified: trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml
===================================================================
--- trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml	2006-04-07 13:18:35 UTC (rev 7227)
+++ trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml	2006-04-07 13:24:36 UTC (rev 7228)
@@ -298,9 +298,8 @@
         <string-to-field string="Y" field-name="isCreate" map-name="partyDataSource"/>
         <!-- get the visit from the session to get the visitId -->
         <session-to-field field-name="visit"/>
-        <field-to-field field-name="visitId" map-name="visit" to-map-name="partyDataSource"/>
+	<set from-field="visit.visitId" field="partyDataSource.visitId"/>
 
-
         <!-- now that everything is validated & setup, check to see if there are errors, then call the services -->
         <check-errors/>
 



More information about the Svn mailing list