From b1acf4e1b46c58bf95d1fb68da99662c16c01c1b Mon Sep 17 00:00:00 2001 From: rangi Date: Fri, 12 Sep 2003 00:46:21 +0000 Subject: [PATCH] Fix for bug 603 --- C4/Search.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index d826013434..2a91b3ccfc 100755 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1760,8 +1760,8 @@ sub BornameSearch { or othernames like \"$data[0]%\" or othernames like \"% $data[0]%\") "; for (my $i=1;$i<$count;$i++){ - $query=$query." and (surname like \"$data[$i]%\" or surname like \"% $data[$i]%\" - or firstname like \"$data[$i]%\" or firstname like \"% $data[$i]%\" + $query=$query." and (". + " firstname like \"$data[$i]%\" or firstname like \"% $data[$i]%\" or othernames like \"$data[$i]%\" or othernames like \"% $data[$i]%\")"; # FIXME - .= <