From 8e9819886dcc5a410878031a258de5102493ee31 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. Signed-off-by: Katrin Fischer --- 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 f4357ec49e..818d07a01d 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 @@ -703,11 +703,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