You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2011/12/26 12:18:04 UTC

svn commit: r1224712 - /ofbiz/trunk/applications/product/webapp/catalog/thesaurus/EditKeywordThesaurus.ftl

Author: ashish
Date: Mon Dec 26 11:18:03 2011
New Revision: 1224712

URL: http://svn.apache.org/viewvc?rev=1224712&view=rev
Log:
Applied bug fix from jira issue - OFBIZ-4632.
Secure Url could not be call for service deleteKeywordThesaurus. 
Description - On the editKeywordThesaurus screen when we create a Keyword Thesaurus then try to delete it problem occurs. Replace the direct anchors to forms will fix this problem.
Thanks Rishi !!!

Modified:
    ofbiz/trunk/applications/product/webapp/catalog/thesaurus/EditKeywordThesaurus.ftl

Modified: ofbiz/trunk/applications/product/webapp/catalog/thesaurus/EditKeywordThesaurus.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/thesaurus/EditKeywordThesaurus.ftl?rev=1224712&r1=1224711&r2=1224712&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/thesaurus/EditKeywordThesaurus.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/thesaurus/EditKeywordThesaurus.ftl Mon Dec 26 11:18:03 2011
@@ -57,7 +57,11 @@ under the License.
                     <form method="post" action="<@o...@ofbizUrl>">
                       <div>
                         ${keyword.enteredKeyword}
-                        <a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDeleteAll}</a>
+                        <form method="post" action="<@o...@ofbizUrl>" name="deleteKeywordThesaurus">
+                          <input type="hidden" name="enteredKeyword" value="${keyword.enteredKeyword}" />
+                          <input type="hidden" name="alternateKeyword" value="${keyword.alternateKeyword}" />
+                          <input type="submit" value="${uiLabelMap.CommonDeleteAll}" />
+                        </form>
                       </div>
                       <div>
                         <input type="hidden" name="enteredKeyword" value="${keyword.enteredKeyword}" />
@@ -70,7 +74,11 @@ under the License.
                   <td>
               </#if>
               <div>
-                <a href="<@o...@ofbizUrl>" class="buttontext">X</a>
+                <form method="post" action="<@o...@ofbizUrl>" name="deleteKeywordThesaurus">
+                  <input type="hidden" name="enteredKeyword" value="${keyword.enteredKeyword}" />
+                  <input type="hidden" name="alternateKeyword" value="${keyword.alternateKeyword}" />
+                  <input type="submit" value="X" />
+                </form>
                 ${keyword.alternateKeyword}&nbsp;(${uiLabelMap.ProductRelationship}:${(relationship.get("description",locale))?default(keyword.relationshipEnumId?if_exists)})
               </div>
               <#-- toggle the row color -->