diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index 169c318877..91c015ebcb 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -819,10 +819,10 @@ $(document).ready(function() { { "mDataProp": function( oObj ) { return "" - + oObj.borrower.firstname.escapeHtml() + + ( oObj.borrower.firstname ? oObj.borrower.firstname.escapeHtml() : "" ) + " " + - oObj.borrower.surname.escapeHtml() - + " (" + oObj.borrower.cardnumber.escapeHtml() + ")" + ( oObj.borrower.surname ? oObj.borrower.surname.escapeHtml() : "" ) + + " (" + ( oObj.borrower.cardnumber ? oObj.borrower.cardnumber.escapeHtml() : "" ) + ")" } }, ],