This is an automated email from the ASF dual-hosted git repository.
jamesyong pushed a commit to branch trunk
in repository
https://gitbox.apache.org/repos/asf/ofbiz-plugins.gitThe following commit(s) were added to refs/heads/trunk by this push:
new ffb54c2 Fixed: processorder is submitted as GET instead of POST
ffb54c2 is described below
commit ffb54c218080e2083d4c0aa81e988765084db8f7
Author: James Yong <
[hidden email]>
AuthorDate: Mon Jan 13 22:31:10 2020 +0800
Fixed: processorder is submitted as GET instead of POST
(OFBIZ-11319)
During checkout of shopping cart, it is observed that the processorder of the form action is submitted as GET which is incorrect.
Thanks: Jacques for the review
---
ecommerce/template/order/CheckoutReview.ftl | 2 +-
ecommerce/template/order/QuickAnonCheckoutReview.ftl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ecommerce/template/order/CheckoutReview.ftl b/ecommerce/template/order/CheckoutReview.ftl
index cb0118d..3700d98 100644
--- a/ecommerce/template/order/CheckoutReview.ftl
+++ b/ecommerce/template/order/CheckoutReview.ftl
@@ -45,7 +45,7 @@ under the License.
${screens.render("component://ecommerce/widget/OrderScreens.xml#orderitems")}
<div class="row">
<div class="col-auto ml-auto">
- <form type="post" action="<@ofbizUrl>processorder</@ofbizUrl>" name="${parameters.formNameValue}">
+ <form method="post" action="<@ofbizUrl>processorder</@ofbizUrl>" name="${parameters.formNameValue}">
<#if (requestParameters.checkoutpage)?has_content>
<input type="hidden" name="checkoutpage" value="${requestParameters.checkoutpage}"/>
</#if>
diff --git a/ecommerce/template/order/QuickAnonCheckoutReview.ftl b/ecommerce/template/order/QuickAnonCheckoutReview.ftl
index 5b2ed09..9408f89 100644
--- a/ecommerce/template/order/QuickAnonCheckoutReview.ftl
+++ b/ecommerce/template/order/QuickAnonCheckoutReview.ftl
@@ -53,7 +53,7 @@ under the License.
${screens.render("component://ecommerce/widget/OrderScreens.xml#quickAnonOrderHeader")}
<br />
<div id="orderItemsSection">${screens.render("component://ecommerce/widget/OrderScreens.xml#orderitems")}</div>
-<form type="post" action="<@ofbizUrl>processorder</@ofbizUrl>" name="${parameters.formNameValue}">
+<form method="post" action="<@ofbizUrl>processorder</@ofbizUrl>" name="${parameters.formNameValue}">
<table border="0" cellpadding="1" width="100%">
<tr>
<td colspan="4">