Author: jleroux
Date: Fri Nov 25 04:41:13 2011
New Revision: 1206059

URL: http://svn.apache.org/viewvc?rev=1206059&view=rev
Log:
A patch from Kiran Gawde "Dead code - CustomerEvents.xml ->setAnonUserLogin" 
https://issues.apache.org/jira/browse/OFBIZ-4593

Simple method "setAnonUserLogin" in CustomerEvents.xml is not referenced 
anywhere.
This method is also implemented in order app and that is referenced during 
onepagecheckout.

jleroux: moreover the code seems to have been duplicated from there



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=1206059&r1=1206058&r2=1206059&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
 Fri Nov 25 04:41:13 2011
@@ -964,24 +964,6 @@ under the License.
         </if-empty>
     </simple-method>
 
-    <simple-method method-name="setAnonUserLogin" short-description="Set user 
login in the session" login-required="false">
-        <if-empty field="userLogin">
-            <entity-one entity-name="UserLogin" value-field="userLogin">
-                <field-map field-name="userLoginId" value="anonymous"/>
-            </entity-one>
-            <set field="userLogin.partyId" from-field="partyId"/>
-            <set-current-user-login value-field="userLogin"/>
-        <else>
-            <!-- If an anonymous vistor is coming back, update the party id in 
the userLogin object -->
-            <if-compare field="userLogin.userLoginId" operator="equals" 
value="anonymous">
-                <set field="userLogin.partyId" from-field="partyId"/>
-            </if-compare>
-        </else>
-        </if-empty>
-        <field-to-request field="userLogin" request-name="userLogin"/>
-        <log level="info" message="userLogin is ${userLogin}"/>
-    </simple-method>
-
     <simple-method method-name="getShipOptions" short-description="Get 
shipping options" login-required="false">
         <set field="dispatcher" from-field="parameters.dispatcher" 
type="Object"/>
         <set field="shoppingCart" from-field="parameters.shoppingCart"/>


Reply via email to