Author: jleroux
Date: Tue Nov 27 11:27:39 2018
New Revision: 1847530

URL: http://svn.apache.org/viewvc?rev=1847530&view=rev
Log:
Reverted: User should be redirected to view cart page after adding the product 
from compare product screen
(OFBIZ-10667)

Revert r1847478

There was a problem with this fix. It changes the behaviour of additem when you 
add an item from the main or another page.

The behaviour is defined by the "Always View Cart After Adding An Item." 
checkbox in the cart view.

Modified:
    ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml

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=1847530&r1=1847529&r2=1847530&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 
Tue Nov 27 11:27:39 2018
@@ -240,7 +240,7 @@ under the License.
     <request-map uri="additem">
         <security https="false" auth="false"/>
         <event type="java" 
path="org.apache.ofbiz.order.shoppingcart.ShoppingCartEvents" 
invoke="addToCart"/>
-        <response name="success" type="view" value="showcart" 
save-last-view="true"/>
+        <response name="success" type="view-last" value="showcart" 
save-last-view="true"/>
         <response name="survey" type="view" value="survey"/>
         <response name="product" type="view" value="product"/>
         <response name="viewcart" type="request-redirect-noparam" 
value="showcart"/>


Reply via email to