svn commit: r1849532 - /ofbiz/ofbiz-plugins/trunk/ecommerce/template/cart/ShowCart.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1849532 - /ofbiz/ofbiz-plugins/trunk/ecommerce/template/cart/ShowCart.ftl

surajk
Author: surajk
Date: Sat Dec 22 10:14:26 2018
New Revision: 1849532

URL: http://svn.apache.org/viewvc?rev=1849532&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/trunk/ecommerce/template/cart/ShowCart.ftl

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/cart/ShowCart.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/cart/ShowCart.ftl?rev=1849532&r1=1849531&r2=1849532&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/cart/ShowCart.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/cart/ShowCart.ftl Sat Dec 22 10:14:26 2018
@@ -438,13 +438,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>