]> git.koha-community.org Git - koha.git/commit
Bug 25293: Don't call escapeHtml on null
authorDidier Gautheron <didier.gautheron@biblibre.com>
Tue, 28 Apr 2020 05:43:46 +0000 (07:43 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Sat, 25 Jul 2020 17:48:53 +0000 (17:48 +0000)
commit6cbd0a6257dabab98959d2c5a090fca84213eefa
treec04429e894508a4cf23ba3bf562b90f67efc7238
parentff49ea79d9afa4a37fb7e342c2100ba0ef8e26e1
Bug 25293: Don't call escapeHtml on null

 Test Plan:

    1) Create two Checkouts
    2) view patron's checkout list
       cgi-bin/koha/members/moremember.pl?borrowernumber=pp <show
       checkout>
    3) in mysql shell delete a checkout home branch: update items set
       homebranch = null where itemnumber = xx;
    4) view patron's checkout list, again

    Without this patch the list is empty.

    Same if biblio title is null (update biblio set title = null where
    biblionumber = yy;).
    Javascript error:
    TypeError: oObj.title is null

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 2b56ae1d4a231a83f52420ec9efc4829226fa86a)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/js/checkouts.js