From df6cbc049f7320a8a819c671ec94ddeaf6184368 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Wed, 19 Mar 2014 11:09:02 +1100 Subject: [PATCH] Making sure quantities don't get lost --- 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 9941dffad8..b9db90af95 100644 --- a/app/views/shop/shop/_products.html.haml +++ b/app/views/shop/shop/_products.html.haml @@ -39,7 +39,8 @@ min: 0, max: "{{product.on_demand && 9999 || product.count_on_hand }}", name: "variants[{{product.master.id}}]", - id: "variants_{{product.master.id}}"} + id: "variants_{{product.master.id}}", + "ng-model" => "product.quantity"} %td.group_buy %span{"ng-show" => "product.group_buy && (product.variants.length == 0)"} %input{type: :number,