svn commit: r890057 - /ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java

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

svn commit: r890057 - /ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java

jleroux@apache.org
Author: jleroux
Date: Sun Dec 13 12:21:48 2009
New Revision: 890057

URL: http://svn.apache.org/viewvc?rev=890057&view=rev
Log:
Wrong value was checked.
Before creating the user login, I checked the presence of the cardId instead of the phone (certainly a remaining in the code from previous attempts).

Modified:
    ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java

Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java?rev=890057&r1=890056&r2=890057&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java (original)
+++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java Sun Dec 13 12:21:48 2009
@@ -1715,7 +1715,7 @@
             svcCtx.put("userLogin", userLogin);
             svcCtx.put("lastName", name);
             svcCtx.put("firstName", ""); // Needed by service createPersonAndUserLogin
-            if (UtilValidate.isNotEmpty(email) && UtilValidate.isNotEmpty(card)) {
+            if (UtilValidate.isNotEmpty(email) && UtilValidate.isNotEmpty(phone)) {
                 svcCtx.put("userLoginId", email);
                 svcCtx.put("currentPassword", phone);
                 svcCtx.put("currentPasswordVerify", phone);