Bugzilla – Attachment 40799 Details for
Bug 14436
Noisy warns in C4/Utils/DataTables/Members.pm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14436: Undefined $searchtype causing warns
Bug-14436-Undefined-searchtype-causing-warns.patch (text/plain), 1.07 KB, created by
Aleisha Amohia
on 2015-07-05 23:14:24 UTC
(
hide
)
Description:
Bug 14436: Undefined $searchtype causing warns
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2015-07-05 23:14:24 UTC
Size:
1.07 KB
patch
obsolete
>From 2511b5ca87d19f74bc0becc9fba2d3289332d0a0 Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Sun, 5 Jul 2015 20:28:08 +0000 >Subject: [PATCH] Bug 14436: Undefined $searchtype causing warns > >Don't forget to apply both patches and test for the first patch too! > >To test this patch: > >1) Use Check out tab on search bar 'enter patron card number or partial name' >2) Notice warns >3) Apply patch and reload page (ie make new search) >4) Notice page still works but no warns >--- > C4/Utils/DataTables/Members.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Utils/DataTables/Members.pm b/C4/Utils/DataTables/Members.pm >index 154de88..358e598 100644 >--- a/C4/Utils/DataTables/Members.pm >+++ b/C4/Utils/DataTables/Members.pm >@@ -76,6 +76,7 @@ sub search { > $searchmember =~ s/\*/%/g; # * is replaced with % for sql > $term .= '%' # end with anything > if $term !~ /%$/; >+ $searchtype //= ''; > $term = "%$term" # begin with anythin unless start_with > if $term !~ /^%/ > and $searchtype eq "contain"; >-- >1.7.10.4
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 14436
:
40507
|
40799
|
40926
|
40931
|
40966