Bugzilla – Attachment 188062 Details for
Bug 41040
Empty patron search from the header should not trigger a patron search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41040: Empty patron search from the header should not trigger a patron search
Bug-41040-Empty-patron-search-from-the-header-shou.patch (text/plain), 1.42 KB, created by
Kyle M Hall (khall)
on 2025-10-17 10:56:53 UTC
(
hide
)
Description:
Bug 41040: Empty patron search from the header should not trigger a patron search
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2025-10-17 10:56:53 UTC
Size:
1.42 KB
patch
obsolete
>From 9cbeea3ab2fa42a70903b1797aabe06fa2099199 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 17 Oct 2025 06:53:38 -0400 >Subject: [PATCH] Bug 41040: Empty patron search from the header should not > trigger a patron search > >If the "arrow" button on the patron search is clicked with no value in the textbox, it redirects to members/members-home.pl and performs a search with no value automatically. It makes more send for it to behave as the "Patrons" link in the navbar that directs to members-home.pl where the librarian can then perform a more advanced search. > >Test Plan: >1) Click the "Search patrons" link on the header, then the arrow button >2) Note an empty patron search is performed immediately >3) Apply this patch >4) Restart all the things! >5) Repeat step 1 >6) Note a paton search is no longer triggered automatically >--- > members/member.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/members/member.pl b/members/member.pl >index bd749ccc44a..f0b68ade6ff 100755 >--- a/members/member.pl >+++ b/members/member.pl >@@ -78,7 +78,7 @@ $template->param( > searchfieldstype => $searchfieldstype, > PatronsPerPage => C4::Context->preference("PatronsPerPage") || 20, > circsearch => $circsearch, >- defer_loading => 0, >+ defer_loading => $searchmember ? 0 : 1, > ); > > output_html_with_http_headers $input, $cookie, $template->output; >-- >2.39.5 (Apple Git-154)
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 41040
: 188062