svn commit: r1849534 - /ofbiz/branches/release16.11/specialpurpose/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: r1849534 - /ofbiz/branches/release16.11/specialpurpose/ecommerce/template/cart/ShowCart.ftl

surajk
Author: surajk
Date: Sat Dec 22 10:17:08 2018
New Revision: 1849534

URL: http://svn.apache.org/viewvc?rev=1849534&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/branches/release16.11/specialpurpose/ecommerce/template/cart/ShowCart.ftl

Modified: ofbiz/branches/release16.11/specialpurpose/ecommerce/template/cart/ShowCart.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/release16.11/specialpurpose/ecommerce/template/cart/ShowCart.ftl?rev=1849534&r1=1849533&r2=1849534&view=diff
==============================================================================
--- ofbiz/branches/release16.11/specialpurpose/ecommerce/template/cart/ShowCart.ftl (original)
+++ ofbiz/branches/release16.11/specialpurpose/ecommerce/template/cart/ShowCart.ftl Sat Dec 22 10:17:08 2018
@@ -427,13 +427,13 @@ under the License.
                               <td>
                         </#if>
                               <input size="6" class="inputBox" type="text" name="update_${cartLineIndex}"
-                                  value="${cartLine.getQuantity()?string.number}" />
+                                  value="${cartLine.getQuantity()?string.number}" min="1" />
                               </td>
                             </tr>
                           </table>
                         <#else><#-- fixedAssetExist -->
                           <input size="6" class="inputBox" type="text" name="update_${cartLineIndex}"
-                              value="${cartLine.getQuantity()?string.number}" />
+                              value="${cartLine.getQuantity()?string.number}" min="1" />
                         </#if>
                     </#if>
                   </td>