[Koha-cvs] CVS: koha/C4 Search.pm,1.94,1.95

skemotah shedges at users.sourceforge.net
Mon Sep 6 00:33:14 CEST 2004


Update of /cvsroot/koha/koha/C4
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19219

Modified Files:
	Search.pm 
Log Message:
Fix bug 789 (in HEAD)

Index: Search.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Search.pm,v
retrieving revision 1.94
retrieving revision 1.95
diff -C2 -r1.94 -r1.95
*** Search.pm	4 Sep 2004 13:48:27 -0000	1.94
--- Search.pm	5 Sep 2004 22:33:12 -0000	1.95
***************
*** 1888,1895 ****
  		@bind=("$data[0]%","% $data[0]%","$data[0]%","% $data[0]%","$data[0]%","% $data[0]%");
  		for (my $i=1;$i<$count;$i++){
! 		$query=$query." and (".
! 		" firstname  like ? or firstname like ?
! 		or othernames like ? or othernames like ?)";
! 		push(@bind,"$data[$i]%","% $data[$i]%","$data[$i]%","% $data[$i]%");
  					# FIXME - .= <<EOT;
  		}
--- 1888,1896 ----
  		@bind=("$data[0]%","% $data[0]%","$data[0]%","% $data[0]%","$data[0]%","% $data[0]%");
  		for (my $i=1;$i<$count;$i++){
! 		        $query=$query." and (".
! 		        " surname like ? or surname like ?
!                         or firstname  like ? or firstname like ?
! 		        or othernames like ? or othernames like ?)";
! 		        push(@bind,"$data[$i]%","% $data[$i]%","$data[$i]%","% $data[$i]%","$data[$i]%","% $data[$i]%");
  					# FIXME - .= <<EOT;
  		}





More information about the Koha-cvs mailing list