Author: jleroux
Date: Fri May 31 08:27:48 2013
New Revision: 1488127

URL: http://svn.apache.org/r1488127
Log:
A patch from Ankit Jain for "User is redirected to showcart page when any error 
comes on checkout page." https://issues.apache.org/jira/browse/OFBIZ-5206

On checkout page if any error comes it redirects user back to showcart page 
with an error message.
Expected : Error should be shown on the same page.

To reproduce the issue,
Goto OrderEntry -> Add any product to cart -> click on Quick finalize order now 
select shipping address & shipping method but don't select any payment option 
and now click on "Continue to Final Order Review" link. You will be redirected 
to showcart page and with a error message. "Please select a method of payment."
And expected behaviour is to show the error message on the same checkout page.


Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml?rev=1488127&r1=1488126&r2=1488127&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml 
(original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml Fri 
May 31 08:27:48 2013
@@ -803,7 +803,7 @@ under the License.
         <security https="true" auth="true"/>
         <event type="java" path="org.ofbiz.order.shoppingcart.CheckOutEvents" 
invoke="setQuickCheckOutOptions"/>
         <response name="success" type="request" value="calcShipping"/>
-        <response name="error" type="request" value="orderentry"/>
+        <response name="error" type="view-last"/>
     </request-map>
     <request-map uri="createPostalAddressAndPurpose">
         <security https="true" auth="true"/>


Reply via email to