koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Steve Tonnesen
Subject: [Koha-cvs] CVS: koha/C4 Search.pm,1.18.2.15,1.18.2.16
Date: Thu, 31 Oct 2002 19:55:05 -0800

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)address@hidden;
    my $dbh = C4Connect();
!   foreach my $key (%$search){
      if (length($search->{$key}) < 3){
         undef ($search->{$key});
--- 176,182 ----
    my ($env,$type,$search,$num,$offset)address@hidden;
    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});




reply via email to

[Prev in Thread] Current Thread [Next in Thread]