From dc0fa2e7405d7afbf31a5a90252852939e1c8ab2 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Thu, 8 Nov 2018 11:03:37 +0000 Subject: [PATCH] Bug 20600: (follow-up) Restore patron name fix The fix for patron name display when no first name is specified was lost in the rebase. This patch restores it. --- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index f50b2d2c51..d8e81c5c04 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -667,11 +667,14 @@ // Our 'render' function for borrowerlink var createPatronLink = function(data, type, row) { - return '' + - row.patron_firstname + ' ' + row.patron_surname + - ''; + 'borrowernumber='+row.borrowernumber+'">'; + if ( row.patron_firstname ) { + patronLink = patronLink + row.patron_firstname + ' '; + } + patronLink = patronLink + row.patron_surname + ''; + return patronLink; }; // Our 'render' function for the library name -- 2.11.0