[Koha-cvs] CVS: koha/C4 Search.pm,1.18.2.15,1.18.2.16

Steve Tonnesen tonnesen at users.sourceforge.net
Fri Nov 1 04:55:05 CET 2002


Update of /cvsroot/koha/koha/C4
In directory usw-pr-cvs1:/tmp/cvs-serv2042

Modified Files:
      Tag: rel-1-2
	Search.pm 
Log Message:
Search.pm was ignoring searches less than 3 characters.  This broke any
searches like "class=JF".


Index: Search.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Search.pm,v
retrieving revision 1.18.2.15
retrieving revision 1.18.2.16
diff -C2 -r1.18.2.15 -r1.18.2.16
*** Search.pm	29 Oct 2002 16:48:52 -0000	1.18.2.15
--- Search.pm	1 Nov 2002 03:55:03 -0000	1.18.2.16
***************
*** 176,180 ****
    my ($env,$type,$search,$num,$offset)=@_;
    my $dbh = C4Connect();
!   foreach my $key (%$search){
      if (length($search->{$key}) < 3){
         undef ($search->{$key});
--- 176,182 ----
    my ($env,$type,$search,$num,$offset)=@_;
    my $dbh = C4Connect();
!   foreach my $key (keys %$search){
!       (next) if ($key eq 'class');  # Don't worry about classes less than 3 characters
!       (next) if ($key eq 'branch'); # Don't worry about branches less than 3 characters
      if (length($search->{$key}) < 3){
         undef ($search->{$key});





More information about the Koha-cvs mailing list