Author: mor
Date: Sat Aug 2 02:48:49 2008
New Revision: 681944
URL:
http://svn.apache.org/viewvc?rev=681944&view=revLog:
Moved the snippet for person information ...
Modified:
ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditShippingAddress.groovy
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=681944&r1=681943&r2=681944&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 02:48:49 2008
@@ -22,6 +22,10 @@
if (userLogin) {
party = userLogin.getRelatedOne("Party");
+ person = delegator.findByPrimaryKey("Person", [partyId : party.partyId]);
+ parameters.firstName = person.firstName;
+ parameters.lastName = person.lastName;
+
contactMech = EntityUtil.getFirst(ContactHelper.getContactMech(party, "SHIPPING_LOCATION", "POSTAL_ADDRESS", false));
if (contactMech) {
postalAddress = contactMech.getRelatedOne("PostalAddress");
@@ -41,8 +45,5 @@
if (shipToCountryProvinceGeo) {
parameters.shipToCountryProvinceGeo = shipToCountryProvinceGeo.geoName;
}
- person = delegator.findByPrimaryKey("Person", [partyId : party.partyId]);
- parameters.firstName = person.firstName;
- parameters.lastName = person.lastName;
}
}
\ No newline at end of file