Bug 28723: Fix holds table display when a biblio has no title

Test plan:
1. Create a biblio without title, then create an item for this biblio.
2. Place a hold on it.
3. Go to the patron detail page and click on the Holds tab
4. Confirm that holds are correctly displayed

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Julian Maurice 2021-07-20 14:45:35 +02:00 committed by Tomas Cohen Arazi
parent 44d6528b56
commit 35874fa380
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -138,7 +138,7 @@ $(document).ready(function() {
title = "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" title = "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber="
+ oObj.biblionumber + oObj.biblionumber
+ "'>" + "'>"
+ oObj.title.escapeHtml(); + (oObj.title ? oObj.title.escapeHtml() : __('No title'));
$.each(oObj.subtitle, function( index, value ) { $.each(oObj.subtitle, function( index, value ) {
title += " " + value.escapeHtml(); title += " " + value.escapeHtml();