Bugzilla – Attachment 187478 Details for
Bug 32176
Correctly display patrons when selected after autocomplete (was js/patron-autocomplete.js need another option)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32176: Use patron_to_html
Bug-32176-Use-patrontohtml.patch (text/plain), 1.17 KB, created by
Jonathan Druart
on 2025-10-06 14:17:56 UTC
(
hide
)
Description:
Bug 32176: Use patron_to_html
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-10-06 14:17:56 UTC
Size:
1.17 KB
patch
obsolete
>From 0821abcabb1108a833b03630a41f7868d11de135 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 6 Oct 2025 15:58:11 +0200 >Subject: [PATCH] Bug 32176: Use patron_to_html > >Thanks to bug 40958. >--- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index 5a1ec1fb2ee..b9c9e937240 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -746,8 +746,7 @@ function patron_autocomplete(node, options) { > if (on_select_add_to) { > let container = on_select_add_to.container; > >- const patron_name = >- `${ui.item.firstname} ${ui.item.middle_name || ""} ${ui.item.surname}`.trim(); >+ const patron_name = $patron_to_html(ui.item); > const node = ` > <div id='patron-detail-${ui.item.patron_id}' class='patron-detail-autocomplete-selection'> > ${patron_name} >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32176
:
187477
|
187478
|
187479
|
187728
|
187729
|
187730
|
187841
|
187842