From 46ddc8416d5cabe6175cdb95207ce6b7f2949a0d Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Tue, 24 Jul 2012 12:24:11 +0200 Subject: [PATCH] Bug 8495: Fix JS error when creating a new order bug introduced by bug 7178 (http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7178) Signed-off-by: Jonathan Druart Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- koha-tmpl/intranet-tmpl/prog/en/js/additem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js b/koha-tmpl/intranet-tmpl/prog/en/js/additem.js index ba6e126ab4..2c15b04779 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/additem.js @@ -189,7 +189,7 @@ function check_additem(unique_item_fields) { continue; } var values = new Array(); - $("[name='kohafield'][value=items."+ fieldname +"]").each(function(){ + $("[name='kohafield'][value='items."+ fieldname +"']").each(function(){ var input = $(this).prevAll("input[name='field_value']")[0]; if($(input).val()) { values.push($(input).val()); -- 2.39.5