Bugzilla – Attachment 188804 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.29 KB, created by
Nick Clemens (kidclamp)
on 2025-10-31 11:14:44 UTC
(
hide
)
Description:
Bug 32176: Use patron_to_html
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2025-10-31 11:14:44 UTC
Size:
1.29 KB
patch
obsolete
>From c8a3bf016e103dd253c3e1aa6c4cb255fd533208 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. > >Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > 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 916497d0639..c54fb6ba895 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -745,8 +745,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.39.5
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
|
188803
| 188804 |
188805
|
188806
|
188807