Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit fba2566

Browse files
committed
Set a default for the max_quantity, so a new client doesn't set old products with no max_quantity to a max of zero in the number spinner code.
1 parent 313c8df commit fba2566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/templates/buyDetails.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
step="1"
3737
min="1"
3838
name="max_quantity"
39-
max="<%= ob.vendor_offer.listing.metadata.max_quantity %>"
39+
max="<%= ob.vendor_offer.listing.metadata.max_quantity || 999999%>"
4040
class="fieldItem spinButtons js-buyWizardQuantity border1 custCol-border marginTop4"
4141
value="1"/>
4242
<div class="numberSpinnerUp"></div>

0 commit comments

Comments
 (0)