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

svn commit: r1856919 - in /ofbiz/ofbiz-plugins/branches/release17.12: ./ ecommerce/template/cart/ShowCart.ftl ecommerce/webapp/ecommerce/WEB-INF/controller.xml

Author: jleroux
Date: Thu Apr  4 12:19:21 2019
New Revision: 1856919

URL: http://svn.apache.org/viewvc?rev=1856919&view=rev
Log:
"Applied fix from plugins for revision: 1856917  " 
------------------------------------------------------------------------
r1856917 | jleroux | 2019-04-04 14:17:35 +0200 (jeu. 04 avr. 2019) | 12 lignes

Fixed: Unable to create new quote from cart at eCommerce store
(OFBIZ-10886)

Actually we decided that an external user should not be able to create quotes
but only requests for quote.

This disables creating quotes from the ecommerce. An authorised user can still
do the same from the backedn (order manager)

Thanks: Sanjay Yadav for initial report, Sasikant Biswal for trying, Pierre for
mentioning that this should not be open to external users and Pawan Verma for 
the fix
------------------------------------------------------------------------

Modified:
    ofbiz/ofbiz-plugins/branches/release17.12/   (props changed)
    ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/template/cart/ShowCart.ftl
    ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/webapp/ecommerce/WEB-INF/controller.xml

Propchange: ofbiz/ofbiz-plugins/branches/release17.12/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Apr  4 12:19:21 2019
@@ -11,4 +11,4 @@
 /ofbiz/branches/multitenant20100310/plugins:921280-927264
 /ofbiz/branches/release13.07/plugins:1547657
 /ofbiz/ofbiz-framework/trunk:1836107
-/ofbiz/ofbiz-plugins/trunk:1819576,1819580,1819582,1819589,1820962,1820973,1821045,1821049,1821051,1822129,1822133,1822139,1822143,1822145,1822389,1822391,1822395,1824646,1824648,1824650,1824654,1828569,1830856,1831084,1832727,1832800,1837796,1837845,1837857,1838249,1838381,1838816,1841650,1845558,1847272,1847346,1847398,1847528,1847530,1848009,1848396,1848398,1848921,1849119,1851002,1851068,1851135,1851185,1852988,1855082,1856802
+/ofbiz/ofbiz-plugins/trunk:1819576,1819580,1819582,1819589,1820962,1820973,1821045,1821049,1821051,1822129,1822133,1822139,1822143,1822145,1822389,1822391,1822395,1824646,1824648,1824650,1824654,1828569,1830856,1831084,1832727,1832800,1837796,1837845,1837857,1838249,1838381,1838816,1841650,1845558,1847272,1847346,1847398,1847528,1847530,1848009,1848396,1848398,1848921,1849119,1851002,1851068,1851135,1851185,1852988,1855082,1856802,1856917

Modified: ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/template/cart/ShowCart.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/template/cart/ShowCart.ftl?rev=1856919&r1=1856918&r2=1856919&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/template/cart/ShowCart.ftl (original)
+++ ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/template/cart/ShowCart.ftl Thu Apr  4 12:19:21 2019
@@ -562,9 +562,7 @@ under the License.
                 <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">
                   <a href="<@o...@ofbizUrl>" class="btn btn-outline-secondary btn-sm">
                     ${uiLabelMap.OrderCreateCustRequestFromCart}
-                  </a>&nbsp;&nbsp;&nbsp;&nbsp;
-                  <a href="<@o...@ofbizUrl>" class="btn btn-outline-secondary btn-sm">
-                    ${uiLabelMap.OrderCreateQuoteFromCart}</a>&nbsp;&nbsp;
+                  </a>
                 <#else>
                   ${uiLabelMap.OrderYouMust}
                   <a href="<@o...@ofbizUrl>" class="btn btn-outline-secondary btn-sm">

Modified: ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/webapp/ecommerce/WEB-INF/controller.xml?rev=1856919&r1=1856918&r2=1856919&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/webapp/ecommerce/WEB-INF/controller.xml (original)
+++ ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/webapp/ecommerce/WEB-INF/controller.xml Thu Apr  4 12:19:21 2019
@@ -1566,12 +1566,6 @@ under the License.
         <response name="success" type="request" value="showcart"/>
         <response name="error" type="request" value="showcart"/>
     </request-map>
-    <request-map uri="createQuoteFromCart">
-        <security https="true" auth="true"/>
-        <event type="java" path="org.apache.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="createQuoteFromCart"/>
-        <response name="success" type="request" value="showcart"/>
-        <response name="error" type="request" value="showcart"/>
-    </request-map>
     <request-map uri="createCustRequestFromShoppingList">
         <security https="true" auth="true"/>
         <event type="service" invoke="createCustRequestFromShoppingList"/>