From 4ab442921a5d0b8d58d0315d4d6cb779ccc8bd22 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Tue, 20 Jul 2021 14:45:35 +0200 Subject: [PATCH] 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 Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/js/holds.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index 44e110df437..c422cfaf8eb 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -138,7 +138,7 @@ $(document).ready(function() { title = "" - + oObj.title.escapeHtml(); + + (oObj.title ? oObj.title.escapeHtml() : __('No title')); $.each(oObj.subtitle, function( index, value ) { title += " " + value.escapeHtml(); -- 2.25.1