mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Defaulting the quantity fields to nil
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
%td
|
||||
%span{"ng-show" => "(product.variants.length == 0)"}
|
||||
%input{type: :number,
|
||||
value: 0,
|
||||
value: nil,
|
||||
min: 0,
|
||||
max: "{{product.on_demand && 9999 || product.count_on_hand }}",
|
||||
name: "variants[{{product.master.id}}]",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
%td {{variant.options_text}}
|
||||
%td
|
||||
%input{type: :number,
|
||||
value: 0,
|
||||
value: nil,
|
||||
min: 0,
|
||||
max: "{{variant.on_demand && 9999 || variant.count_on_hand }}",
|
||||
name: "variants[{{variant.id}}]", id: "variants_{{variant.id}}"}
|
||||
|
||||
Reference in New Issue
Block a user