Bug 33457: (follow-up) Simplify even further

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit cd18b2e6fc)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Martin Renvoize 2024-01-25 11:55:42 +00:00 committed by Fridolin Somers
parent 26c27bd65d
commit 17c3b15c2e

View file

@ -559,11 +559,8 @@
function select_user(borrowernumber, borrower) {
ownerRemove();
var borrowername = $patron_to_html( borrower, { display_cardnumber: false, url: false } );
if (borrowernumber) {
var ownerlink = '<a href="/cgi-bin/koha/members/moremember.pl'
+ '?borrowernumber=' + borrowernumber + '">'
+ borrowername + '</a>';
var ownerlink = $patron_to_html( borrower, { display_cardnumber: false, url: true } );
$('#budget_owner_name').html(ownerlink);
$('#budget_owner_id').val(borrowernumber);
}