[OFBiz] SVN: r6061 - trunk/applications/ecommerce/webapp/ecommerce/customer

sichen at svn.ofbiz.org sichen at svn.ofbiz.org
Tue Nov 1 19:24:27 EST 2005


Author: sichen
Date: 2005-11-01 18:24:24 -0600 (Tue, 01 Nov 2005)
New Revision: 6061

Modified:
   trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl
Log:
Make the Set Default button work. Problem was due to partyId not being passed to the action. Also fixed a uiLabelMap typo.

Modified: trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl
===================================================================
--- trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl	2005-11-01 20:43:31 UTC (rev 6060)
+++ trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl	2005-11-02 00:24:24 UTC (rev 6061)
@@ -145,9 +145,9 @@
                       <#if contactMechPurposeType?exists>
                         <b>${contactMechPurposeType.description}</b>
                         <#if contactMechPurposeType.contactMechPurposeTypeId == "SHIPPING_LOCATION" && (profiledefs.defaultShipAddr)?default("") == contactMech.contactMechId>
-                          <span class="buttontextdisabled">${uiLabelMap.EcommerceIsDefaul}</span>
+                          <span class="buttontextdisabled">${uiLabelMap.EcommerceIsDefault}</span>
                         <#elseif contactMechPurposeType.contactMechPurposeTypeId == "SHIPPING_LOCATION">
-                          <a href="<@ofbizUrl>setprofiledefault/viewprofile?productStoreId=${productStoreId}&defaultShipAddr=${contactMech.contactMechId}</@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceSetDefault}</a>
+                          <a href="<@ofbizUrl>setprofiledefault/viewprofile?productStoreId=${productStoreId}&defaultShipAddr=${contactMech.contactMechId}&partyId=${party.partyId}</@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceSetDefault}</a>
                         </#if>
                       <#else>
                         <b>${uiLabelMap.PartyPurposeTypeNotFound}: "${partyContactMechPurpose.contactMechPurposeTypeId}"</b>
@@ -322,7 +322,7 @@
                         <#if (profiledefs.defaultPayMeth)?default("") == paymentMethod.paymentMethodId>
                           <div class="buttontextdisabled">${uiLabelMap.EcommerceIsDefault}</span>
                         <#else>
-                          <div><a href="<@ofbizUrl>setprofiledefault/viewprofile?productStoreId=${productStoreId}&defaultPayMeth=${paymentMethod.paymentMethodId}</@ofbizUrl>" class="buttontext">
+                          <div><a href="<@ofbizUrl>setprofiledefault/viewprofile?productStoreId=${productStoreId}&defaultPayMeth=${paymentMethod.paymentMethodId}&partyId=${party.partyId}</@ofbizUrl>" class="buttontext">
                           ${uiLabelMap.EcommerceSetDefault}</a></div>
                         </#if>
                       </td>



More information about the Svn mailing list