You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by su...@apache.org on 2018/12/22 10:15:31 UTC

svn commit: r1849533 - /ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/template/cart/ShowCart.ftl

Author: surajk
Date: Sat Dec 22 10:15:31 2018
New Revision: 1849533

URL: http://svn.apache.org/viewvc?rev=1849533&view=rev
Log:
Fixed: Quantity of the product added in the cart should not be negative.
(OFBIZ-10668)
Thanks Dikpal Kanungo for reporting and Prakhar Kumar for providing the patch.

Modified:
    ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/template/cart/ShowCart.ftl

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=1849533&r1=1849532&r2=1849533&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 Sat Dec 22 10:15:31 2018
@@ -445,13 +445,13 @@ under the License.
                               <td>
                         </#if>
                               <input class="inputBox form-control" type="number" name="update_${cartLineIndex}"
-                                  value="${cartLine.getQuantity()?string.number}" />
+                                  value="${cartLine.getQuantity()?string.number}" min="1" />
                               </td>
                             </tr>
                           </table>
                         <#else><#-- fixedAssetExist -->
                           <input class="inputBox form-control" type="number" name="update_${cartLineIndex}"
-                              value="${cartLine.getQuantity()?string.number}" />
+                              value="${cartLine.getQuantity()?string.number}" min="1" />
                         </#if>
                     </#if>
                   </td>