From 90e0c0de5c127664177821ac9d05aca046e0d823 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sun, 18 Feb 2018 15:10:30 -0300 Subject: [PATCH] Bug 20148: Prevent adding same user multiple times to an order Signed-off-by: Jonathan Druart Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt index a71e35549f..3bad339e0b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -177,7 +177,7 @@ $(document).ready(function() } else { ids = new Array; } - if (ids.indexOf(borrowernumber) < 0) { + if (ids.indexOf(borrowernumber.toString()) < 0) { ids.push(borrowernumber); $("#users_ids").val(ids.join(':')); var li = '
  • '+borrowername -- 2.39.5