Bug 21585: Ignore missing firstname in ILL requests table
To test: - Make sure you have a patron with just a surname and no firstname - Create an ILL request so that the name of this patron shows up in the Patron column of the ILL requests table - Before the patch, the name will display as "null Surname" - Apply the patch - Reload the ILL requests page - The name should now display as just "Surname" - Sign ye merrily off Signed-off-by: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
5e2b67d8c5
commit
5ea877f6cb
|
|
@ -110,11 +110,14 @@
|
|||
|
||||
// Our 'render' function for borrowerlink
|
||||
var createPatronLink = function(data, type, row) {
|
||||
return '<a title="' + _("View borrower details") + '" ' +
|
||||
var patronLink = '<a title="' + _("View borrower details") + '" ' +
|
||||
'href="/cgi-bin/koha/members/moremember.pl?' +
|
||||
'borrowernumber='+row.borrowernumber+'">' +
|
||||
row.patron_firstname + ' ' + row.patron_surname +
|
||||
'</a>';
|
||||
'borrowernumber='+row.borrowernumber+'">';
|
||||
if ( row.patron_firstname ) {
|
||||
patronLink = patronLink + row.patron_firstname + ' ';
|
||||
}
|
||||
patronLink = patronLink + row.patron_surname + '</a>';
|
||||
return patronLink
|
||||
};
|
||||
|
||||
// Our 'render' function for biblio_id
|
||||
|
|
|
|||
Loading…
Reference in New Issue