Author: ashish
Date: Tue Sep 8 09:06:31 2009
New Revision: 812406
URL:
http://svn.apache.org/viewvc?rev=812406&view=revLog:
Minor improvements - Patch from Awdesh.
Modified:
ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml
Modified: ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml?rev=812406&r1=812405&r2=812406&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml Tue Sep 8 09:06:31 2009
@@ -963,6 +963,14 @@
<if-empty field="parameters.partyId">
<request-to-field request-name="partyId" field="parameters.partyId"/>
</if-empty>
+ <if-empty field="parameters.username">
+ <call-class-method class-name="org.ofbiz.product.store.ProductStoreWorker" method-name="getProductStore" ret-field="productStore">
+ <field field="request" type="javax.servlet.ServletRequest"/>
+ </call-class-method>
+ <if-compare field="productStore.usePrimaryEmailUsername" operator="equals" value="Y">
+ <set field="parameters.username" from-field="parameters.emailAddress"/>
+ </if-compare>
+ </if-empty>
<if-empty field="userLogin">
<call-map-processor xml-resource="component://securityext/script/org/ofbiz/securityext/login/LoginMapProcs.xml"
processor-name="userLogin" in-map-name="parameters" out-map-name="userLoginMap"/>