]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Jul 2020 12:05:21 +0000 (14:05 +0200)
commit2b56ae1d4a231a83f52420ec9efc4829226fa86a
tree1bb33df97334d70a81f0cc27dc866a6799caebd3
parenta21a3bba6b23beed7aef9852f7c82efbfc1c3c1e
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>
koha-tmpl/intranet-tmpl/prog/js/checkouts.js