From d0992b16043bbce00a6857b98456743dab380eb1 Mon Sep 17 00:00:00 2001 From: bMancone Date: Tue, 17 Jan 2012 15:06:02 +0000 Subject: [PATCH] // Fixed #PSTEST-445 --- .../themes/default/template/controllers/supply_orders/form.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-dev/themes/default/template/controllers/supply_orders/form.tpl b/admin-dev/themes/default/template/controllers/supply_orders/form.tpl index 0dd818231..ebf3946ff 100644 --- a/admin-dev/themes/default/template/controllers/supply_orders/form.tpl +++ b/admin-dev/themes/default/template/controllers/supply_orders/form.tpl @@ -237,7 +237,7 @@ action : 'searchProduct', }, parse: function(data) { - if (data == null) + if (data == null || data == 'undefined') return []; var res = $.map(data, function(row) { // filter the data to chaeck if the product is already added to the order