You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mo...@apache.org on 2008/08/02 10:01:47 UTC

svn commit: r681938 - in /ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer: EditBillingAddress.groovy EditShippingAddress.groovy

Author: mor
Date: Sat Aug  2 01:01:46 2008
New Revision: 681938

URL: http://svn.apache.org/viewvc?rev=681938&view=rev
Log:
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;
     }