You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2009/04/28 11:21:55 UTC
svn commit: r769309 -
/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js
Author: ashish
Date: Tue Apr 28 09:21:52 2009
New Revision: 769309
URL: http://svn.apache.org/viewvc?rev=769309&view=rev
Log:
Applied patch from Jira issue OFBIZ-2375 (Unexpected behaviour on the Checkout page)
Thanks Ashish Nagar for your contribution.
Special thanks to Pranay Pandey for review.
Modified:
ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js
Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js?rev=769309&r1=769308&r2=769309&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js Tue Apr 28 09:21:52 2009
@@ -439,6 +439,9 @@
var productId = $(productIdElementId).value;
var itemIndex = getProductLineItemIndex(event,productId);
var formValues = "update_" + itemIndex + "= 0";
+ if ($(qtyId).value == '' || isNaN(qtyId.value)) {
+ $(qtyId).value = 0;
+ }
updateCartData(qtyId, formValues, 0, itemIndex);
}