Bugzilla – Attachment 140415 Details for
Bug 31525
Street number not being accessed correctly on patron search results page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31525: display streetnumber with address in patron search
Bug-31525-display-streetnumber-with-address-in-pat.patch (text/plain), 1.79 KB, created by
Wainui Witika-Park
on 2022-09-11 22:25:41 UTC
(
hide
)
Description:
Bug 31525: display streetnumber with address in patron search
Filename:
MIME Type:
Creator:
Wainui Witika-Park
Created:
2022-09-11 22:25:41 UTC
Size:
1.79 KB
patch
obsolete
>From 7994164bb569a03283e8f77148cf9037dfb7eed8 Mon Sep 17 00:00:00 2001 >From: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz> >Date: Sun, 11 Sep 2022 22:18:45 +0000 >Subject: [PATCH] Bug 31525: display streetnumber with address in patron search > >Adds back street number to the address when searching for patrons > >To test: >1) Edit a patron's contact information >2) Under Main Address put an address, make sure to put something in the >Street number field >3) Do a simple patron search that will yield results (i.e. "a") >4) Confirm the street number does not show, but the rest of the address >does >5) Apply this patch >6) Do another patron search >5) Confirm the street number now shows > >Sponsored-by: Catalyst IT >--- > koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format-address.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format-address.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format-address.inc >index 407bc42e2fb..1b6425b28e1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format-address.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format-address.inc >@@ -19,7 +19,7 @@ > if ( data.street_type ) { > roadtype_desc = roadtypes_map[data.street_type] ? roadtypes_map[data.street_type].street_type : data.street_type; > } >- address += '<li class="patronaddress1">' + escape_str(data.streetnumber) + ' ' + escape_str(data.address) + ' ' + escape_str(roadtype_desc) + '</li>'; >+ address += '<li class="patronaddress1">' + escape_str(data.street_number) + ' ' + escape_str(data.address) + ' ' + escape_str(roadtype_desc) + '</li>'; > } > } > if ( data.address2 ) { >-- >2.11.0
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 31525
:
140415
|
140434
|
140458