From 3df3afe068b706f7224f2c8f0aff03b773b701fc Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Wed, 19 Mar 2014 11:09:45 +1100 Subject: [PATCH] Quantities for bulk not getting lost now --- app/views/shop/shop/_products.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/shop/shop/_products.html.haml b/app/views/shop/shop/_products.html.haml index b9db90af95..36193467e0 100644 --- a/app/views/shop/shop/_products.html.haml +++ b/app/views/shop/shop/_products.html.haml @@ -46,7 +46,8 @@ %input{type: :number, min: 0, max: "{{product.on_demand && 9999 || product.count_on_hand }}", - name: "variant_attributes[{{product.master.id}}][max_quantity]"} + name: "variant_attributes[{{product.master.id}}][max_quantity]", + "ng-model" => "product.max_quantity"} %td.price.text-right %small{"ng-show" => "(product.variants.length > 0)"} from {{ productPrice(product) | currency }}