Bugzilla – Attachment 183097 Details for
Bug 39427
Searching lists table by owner can only enter firstname or surname
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39427: Split the argument for both name fields to be searched and added regex for spacing
Bug-39427-Split-the-argument-for-both-name-fields-.patch (text/plain), 950 bytes, created by
Laura Escamilla
on 2025-06-09 13:37:48 UTC
(
hide
)
Description:
Bug 39427: Split the argument for both name fields to be searched and added regex for spacing
Filename:
MIME Type:
Creator:
Laura Escamilla
Created:
2025-06-09 13:37:48 UTC
Size:
950 bytes
patch
obsolete
>From 298b82b06ef20a34958f56e8f1da690ed582443c Mon Sep 17 00:00:00 2001 >From: Laura_Escamilla <laura.escamilla@bywatersolutions.com> >Date: Mon, 9 Jun 2025 13:26:36 +0000 >Subject: [PATCH] Bug 39427: Split the argument for both name fields to be > searched and added regex for spacing > >--- > C4/Utils/DataTables/VirtualShelves.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/C4/Utils/DataTables/VirtualShelves.pm b/C4/Utils/DataTables/VirtualShelves.pm >index 80f18a61da..1d4b868073 100644 >--- a/C4/Utils/DataTables/VirtualShelves.pm >+++ b/C4/Utils/DataTables/VirtualShelves.pm >@@ -63,6 +63,8 @@ sub search { > push @args, "%$shelfname%"; > } > if ( defined $owner and $owner ne '' ) { >+ $owner =~ s/^\s+|\s+$//g; # Trim leading/trailing spaces >+ $owner =~ s/\s+/ /g; # Collapse multiple internal spaces to one > my @name_parts = split ' ', $owner; > > if ( @name_parts == 2 ) { >-- >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 39427
:
182674
|
182675
|
183097
|
183130
|
183131
|
183455
|
183456
|
183465
|
183466