svn commit: r1232539 - /ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy

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

svn commit: r1232539 - /ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy

jleroux@apache.org
Author: jleroux
Date: Tue Jan 17 19:09:21 2012
New Revision: 1232539

URL: http://svn.apache.org/viewvc?rev=1232539&view=rev
Log:
A patch from Kiran Gawde "cardType is not prepopulated on checkout page" https://issues.apache.org/jira/browse/OFBIZ-4665

On Checkout page, credit card information is prepopulated based upon earlier order. But the card Type shows always the first type in the list.

jleroux: replaced tabs by 4 spaces

Modified:
    ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy

Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy?rev=1232539&r1=1232538&r2=1232539&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy Tue Jan 17 19:09:21 2012
@@ -51,6 +51,7 @@ if (userLogin) {
             creditCard = paymentMethod.getRelatedOne("CreditCard");
             context.paymentMethodTypeId = "CREDIT_CARD";
             context.cardNumber = creditCard.cardNumber;
+            context.cardType = creditCard.cardType;
             context.paymentMethodId = creditCard.paymentMethodId;
             context.firstNameOnCard = creditCard.firstNameOnCard;
             context.lastNameOnCard = creditCard.lastNameOnCard;