You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2013/11/02 01:08:15 UTC
svn commit: r1538098 - in /ofbiz/branches/release12.04: ./
applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy
applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutOptions.groovy
Author: jleroux
Date: Sat Nov 2 00:08:15 2013
New Revision: 1538098
URL: http://svn.apache.org/r1538098
Log:
"Applied fix from trunk for revision: 1538096 "
------------------------------------------------------------------------
r1538096 | jleroux | 2013-11-02 01:07:10 +0100 (sam. 02 nov. 2013) | 2 lignes
Fixes a bug I found in CheckInits.groovy while trying to create an new order from Order View screen
Fixes the same kind of bug in CheckoutOptions.groovy
------------------------------------------------------------------------
Modified:
ofbiz/branches/release12.04/ (props changed)
ofbiz/branches/release12.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy
ofbiz/branches/release12.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutOptions.groovy
Propchange: ofbiz/branches/release12.04/
------------------------------------------------------------------------------
Merged /ofbiz/trunk:r1538096
Modified: ofbiz/branches/release12.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy
URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy?rev=1538098&r1=1538097&r2=1538098&view=diff
==============================================================================
--- ofbiz/branches/release12.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy (original)
+++ ofbiz/branches/release12.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy Sat Nov 2 00:08:15 2013
@@ -60,6 +60,6 @@ if (partyId) {
contactMech = EntityUtil.getFirst(ContactHelper.getContactMech(party, "SHIPPING_LOCATION", "POSTAL_ADDRESS", false));
if (contactMech) {
ShoppingCart shoppingCart = ShoppingCartEvents.getCartObject(request);
- shoppingCart.setShippingContactMechId(contactMech.contactMechId);
+ shoppingCart.setAllShippingContactMechId(contactMech.contactMechId);
}
}
\ No newline at end of file
Modified: ofbiz/branches/release12.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutOptions.groovy
URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutOptions.groovy?rev=1538098&r1=1538097&r2=1538098&view=diff
==============================================================================
--- ofbiz/branches/release12.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutOptions.groovy (original)
+++ ofbiz/branches/release12.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutOptions.groovy Sat Nov 2 00:08:15 2013
@@ -59,7 +59,7 @@ if (shoppingCart.getShipmentMethodTypeId
// other profile defaults
if (!shoppingCart.getShippingAddress() && profiledefs?.defaultShipAddr) {
- shoppingCart.setShippingContactMechId(profiledefs.defaultShipAddr);
+ shoppingCart.setAllShippingContactMechId(profiledefs.defaultShipAddr);
}
if (shoppingCart.selectedPayments() == 0 && profiledefs?.defaultPayMeth) {
shoppingCart.addPayment(profiledefs.defaultPayMeth);