Author: jleroux
Date: Thu Jan 13 10:27:49 2011
New Revision: 1058488

URL: http://svn.apache.org/viewvc?rev=1058488&view=rev
Log:
A patch from Sascha Rodekamp <<Error when "Add All to Cart" or "Add Checked to 
Cart" viewing an order in ecommerce>> 
(https://issues.apache.org/jira/browse/OFBIZ-3881) - OFBIZ-3881

The reason for the bug was that the request was called with an additional 
orderId get parameter. But the orderId was still in the parameter map so the 
request handler created with these two orderIds a orderId List. These list 
couldn't be interpreted from the groovy script(because a string was expected). 
The result was the error message.

Modified:
    ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderstatus.ftl

Modified: 
ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderstatus.ftl
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderstatus.ftl?rev=1058488&r1=1058487&r2=1058488&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderstatus.ftl 
(original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderstatus.ftl 
Thu Jan 13 10:27:49 2011
@@ -17,7 +17,7 @@ specific language governing permissions 
 under the License.
 -->
 <#if orderHeader?has_content>
-  <form name="addCommonToCartForm" 
action="<@ofbizUrl>addordertocart/orderstatus?orderId=${orderHeader.orderId}</@ofbizUrl>"
 method="post">
+  <form name="addCommonToCartForm" 
action="<@ofbizUrl>addordertocart/orderstatus</@ofbizUrl>" method="post">
     <input type="hidden" name="add_all" value="false" />
     <input type="hidden" name="orderId" value="${orderHeader.orderId}" />
     
${screens.render("component://ecommerce/widget/OrderScreens.xml#orderheader")}


Reply via email to