]> git.koha-community.org Git - koha.git/commit
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)
committerHayley Mapley <hayleymapley@catalyst.net.nz>
Wed, 15 Jan 2020 21:28:44 +0000 (10:28 +1300)
commit60946fe09ecc12c20c9d37d16742f4a5b6331086
treefc55ac3f4e021c95a61397e4d1683dbe865cd7d8
parent7a520d4225daff52960e02e9c1ce52606b6deaca
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>
(cherry picked from commit d2e1034084c9310498607e1d5e4156c40d7b2245)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 69a7644360a62693c07beb52806a525c2c28b891)
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/js/checkouts.js