From 0569f08b4ce39de613b0750cc66d242f5c954929 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 15 Jul 2024 21:37:06 +0000 Subject: [PATCH] Bug 37368: Change library.name to library_id To test: 1: update borrowers set surname = NULL where borrowernumber = 19; 2. update borrowers set firstname = NULL where borrowernumber = 19; 3. Perform a patron search, see the console error and the patron search never completes. 4. APPLY PATCH and try searching again. 5. Search completes. Signed-off-by: David Nind --- koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc index ae27dd09ba..b6fdd3264e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc @@ -37,7 +37,7 @@ } if ( name.replace(' ', '').length == 0 ) { - return _("A patron from library %s".format(patron.library.name)); + return _("A patron from library %s".format(patron.library_id)); } if ( config && config.hide_patron_name ) { -- 2.39.2