Author: mor
Date: Sat Aug 2 01:01:46 2008
New Revision: 681938
URL:
http://svn.apache.org/viewvc?rev=681938&view=revLog:
Small fixes to scripts added recently for one page
Modified:
ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy
ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditShippingAddress.groovy
Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy?rev=681938&r1=681937&r2=681938&view=diff==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy Sat Aug 2 01:01:46 2008
@@ -44,7 +44,7 @@
}
creditCards = [];
- paymentMethod = EntityUtil.getFirst(EntityUtil.filterByDate(delegator.findList("PaymentMethod", EntityCondition.makeCondition([partyId : party.partyId]), null, ["fromDate"], null, null)));
+ paymentMethod = EntityUtil.getFirst(EntityUtil.filterByDate(delegator.findList("PaymentMethod", EntityCondition.makeCondition([partyId : party.partyId]), null, ["fromDate"], null, false)));
if (paymentMethod) {
creditCard = paymentMethod.getRelatedOne("CreditCard");
if (creditCard) {
Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditShippingAddress.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditShippingAddress.groovy?rev=681938&r1=681937&r2=681938&view=diff==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditShippingAddress.groovy (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditShippingAddress.groovy Sat Aug 2 01:01:46 2008
@@ -41,7 +41,7 @@
if (shipToCountryProvinceGeo) {
parameters.shipToCountryProvinceGeo = shipToCountryProvinceGeo.geoName;
}
- person = delegator.findByPrimaryKey("Person", [partyId : partyId]);
+ person = delegator.findByPrimaryKey("Person", [partyId : party.partyId]);
parameters.firstName = person.firstName;
parameters.lastName = person.lastName;
}