From 2511b5ca87d19f74bc0becc9fba2d3289332d0a0 Mon Sep 17 00:00:00 2001 From: Aleisha 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