Bugzilla – Attachment 152544 Details for
Bug 34083
Patron auto-complete fails if organization patron full name is in a single field separated by a space
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34083: (follow-up) Prevent showing 'null'
Bug-34083-follow-up-Prevent-showing-null.patch (text/plain), 1.39 KB, created by
Pedro Amorim
on 2023-06-22 08:59:01 UTC
(
hide
)
Description:
Bug 34083: (follow-up) Prevent showing 'null'
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-06-22 08:59:01 UTC
Size:
1.39 KB
patch
obsolete
>From 5895b7c75e0d99ebab767ab76fed64835b84dc8f Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Thu, 22 Jun 2023 08:58:34 +0000 >Subject: [PATCH] Bug 34083: (follow-up) Prevent showing 'null' > >In patron lists, if the patron added is an organization without the firstname, it presents 'null'. This fixes that >--- > koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt >index dc3c6b6376..00a33b8c2a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt >@@ -256,7 +256,7 @@ > patron_autocomplete($("#find_patron"), { > 'on-select-callback': function( event, ui ) { > var field = ui.item.cardnumber; >- AddPatron( ui.item.firstname + " " + ( ui.item.middle_name || "" ) + " " + ui.item.surname, field, $("#patrons_to_add"), 'patrons_to_add' ); >+ AddPatron( ( ui.item.firstname || "" ) + " " + ( ui.item.middle_name || "" ) + " " + ( ui.item.surname || "" ), field, $("#patrons_to_add"), 'patrons_to_add' ); > $("#find_patron").val('').focus(); > return false; > } >-- >2.30.2
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 34083
:
152532
|
152534
|
152544
|
152559
|
152560
|
152593
|
152594