Bug 24166: Do not hang when displaying checkout list if barcode is not set
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 18 Dec 2019 10:09:51 +0000 (11:09 +0100)
committerJoy Nelson <joy@bywatersolutions.com>
Sun, 12 Jan 2020 19:20:36 +0000 (19:20 +0000)
commitd2e1034084c9310498607e1d5e4156c40d7b2245
treed42a0e8cbc627b92d43097fc3e2cb69c45f2220f
parentdce1f12229eaa9370ce06b50248a433f778b3261
Bug 24166: Do not hang when displaying checkout list if barcode is not set

If a barcode is not set, there is a JS error in the log:
  TypeError: oObj.barcode is null
We should not call escapeHtml() on it if not barcode is set for a given
item.

Test plan:
Check an item out
Remove its barcode
Load the checkout list
=> Without this patch you get the "loading" popup and the table is never
displayed
=> With this patch applied you see the checkout list

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/js/checkouts.js