svn commit: r1836895 - in /ofbiz/ofbiz-plugins/trunk/ecommerce: template/customer/EditContactMech.ftl webapp/ecommerce/WEB-INF/controller.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1836895 - in /ofbiz/ofbiz-plugins/trunk/ecommerce: template/customer/EditContactMech.ftl webapp/ecommerce/WEB-INF/controller.xml

surajk
Author: surajk
Date: Sat Jul 28 12:31:12 2018
New Revision: 1836895

URL: http://svn.apache.org/viewvc?rev=1836895&view=rev
Log:
Improved: Rename deletePartyContactMechPurpose* services with proper names.
Thanks everyone for discussions.
(OFBIZ-10398)

Modified:
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/EditContactMech.ftl
    ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/EditContactMech.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/EditContactMech.ftl?rev=1836895&r1=1836894&r2=1836895&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/EditContactMech.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/EditContactMech.ftl Sat Jul 28 12:31:12 2018
@@ -68,8 +68,8 @@ under the License.
         <div class="col-sm-6">
             <#list partyContactMechPurposes! as partyContactMechPurpose>
               <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
-                  <form name="deletePartyContactMechPurpose_${partyContactMechPurpose.contactMechPurposeTypeId}" class="my-2"
-                        method="post" action="<@ofbizUrl>deletePartyContactMechPurpose</@ofbizUrl>">
+                  <form name="expirePartyContactMechPurpose_${partyContactMechPurpose.contactMechPurposeTypeId}" class="my-2"
+                        method="post" action="<@ofbizUrl>expirePartyContactMechPurpose</@ofbizUrl>">
                     <div class="form-group">
                       <label class="my-2">
                         <#if contactMechPurposeType??>
@@ -86,7 +86,7 @@ under the License.
                              value="${partyContactMechPurpose.contactMechPurposeTypeId}"/>
                       <input type="hidden" name="fromDate" value="${partyContactMechPurpose.fromDate}"/>
                       <input type="hidden" name="useValues" value="true"/>
-                      <a href='javascript:document.deletePartyContactMechPurpose_${partyContactMechPurpose.contactMechPurposeTypeId}.submit()'
+                      <a href='javascript:document.expirePartyContactMechPurpose_${partyContactMechPurpose.contactMechPurposeTypeId}.submit()'
                          class="btn btn-outline-secondary">${uiLabelMap.CommonDelete}</a>
                     </div>
                   </form>

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml?rev=1836895&r1=1836894&r2=1836895&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml Sat Jul 28 12:31:12 2018
@@ -1058,9 +1058,9 @@ under the License.
         <response name="success" type="view" value="editcontactmech"/>
         <response name="error" type="view" value="editcontactmech"/>
     </request-map>
-    <request-map uri="deletePartyContactMechPurpose">
+    <request-map uri="expirePartyContactMechPurpose">
         <security https="true" auth="true"/>
-        <event type="service" invoke="deletePartyContactMechPurpose"/>
+        <event type="service" invoke="expirePartyContactMechPurpose"/>
         <response name="success" type="view" value="editcontactmech"/>
         <response name="error" type="view" value="editcontactmech"/>
     </request-map>