Bug 40995: (follow-up) pass invert_name in patron autocomplete

Passes invert_name flag to patron_to_html to restore previous
format in patron autocomplete.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
CJ Lynce 2025-10-13 19:58:21 +00:00 committed by Laura Escamilla
parent abac997ffd
commit 3afd18b27f
No known key found for this signature in database
GPG Key ID: B5DEB5FD2FCDA5D8
1 changed files with 4 additions and 1 deletions

View File

@ -775,7 +775,10 @@ function patron_autocomplete(node, options) {
.append(
"" +
(item.link ? '<a href="' + item.link + '">' : "<a>") +
$patron_to_html(item, { display_cardnumber: true }) +
$patron_to_html(item, {
display_cardnumber: true,
invert_name: true,
}) +
" " +
(item.date_of_birth
? $date(item.date_of_birth) +