Bug 20148: Prevent adding same user multiple times to an order

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 802c81ce1a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2018-02-18 15:10:30 -03:00 committed by Fridolin Somers
parent cdce1d8f39
commit e89ee57263
1 changed files with 1 additions and 1 deletions

View File

@ -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 = '<li id="user_'+borrowernumber+'">'+borrowername