From e25ab1ea9742ef3b0877be8e8a0804bb03e44ae3 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Wed, 18 Apr 2012 15:15:58 +0000 Subject: [PATCH] // Fix little bug with order without product --- admin-dev/themes/default/template/controllers/orders/form.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-dev/themes/default/template/controllers/orders/form.tpl b/admin-dev/themes/default/template/controllers/orders/form.tpl index 4997baaf2..96658c876 100755 --- a/admin-dev/themes/default/template/controllers/orders/form.tpl +++ b/admin-dev/themes/default/template/controllers/orders/form.tpl @@ -465,7 +465,7 @@ html_carts += ''; }); $.each(res.orders, function() { - html_orders += ''+this.id_order+''+this.date_add+''+this.nb_products+''+this.total_paid_real+''+this.payment+''+this.order_state+''; + html_orders += ''+this.id_order+''+this.date_add+''+(this.nb_products ? this.nb_products : '0')+''+this.total_paid_real+''+this.payment+''+this.order_state+''; html_orders += ''; html_orders += ''; });