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:
parent
abac997ffd
commit
3afd18b27f
|
|
@ -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) +
|
||||
|
|
|
|||
Loading…
Reference in New Issue