From 775b9759820c155aa42eb5607d220f21c116a4be Mon Sep 17 00:00:00 2001 From: bMancone Date: Mon, 26 Mar 2012 15:01:56 +0000 Subject: [PATCH] // Fixed #PSTEST-1007 --- .../template/controllers/supply_orders/helpers/form/form.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-dev/themes/default/template/controllers/supply_orders/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/supply_orders/helpers/form/form.tpl index 0fcd97bc7..216f4f711 100644 --- a/admin-dev/themes/default/template/controllers/supply_orders/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/supply_orders/helpers/form/form.tpl @@ -186,7 +186,7 @@ //find the position of the product id in product_id array - var position = product_ids.indexOf(product_id); + var position = jQuery.inArray(product_id, product_ids); if (position != -1) { //remove the id from the array