[interchange-cvs] interchange - heins modified lib/Vend/DbSearch.pm

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Thu Aug 1 23:05:01 2002


User:      heins
Date:      2002-08-02 03:04:53 GMT
Modified:  lib/Vend DbSearch.pm
Log:
* Fix bug where HIDE_FIELD and screening query would not work
  together.

Revision  Changes    Path
2.16      +3 -3      interchange/lib/Vend/DbSearch.pm


rev 2.16, prev_rev 2.15
Index: DbSearch.pm
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /anon_cvs/repository/interchange/lib/Vend/DbSearch.pm,v
retrieving revision 2.15
retrieving revision 2.16
diff -u -r2.15 -r2.16
--- DbSearch.pm	15 Jul 2002 13:41:12 -0000	2.15
+++ DbSearch.pm	2 Aug 2002 03:04:53 -0000	2.16
@@ -1,6 +1,6 @@
 # Vend::DbSearch - Search indexes with Interchange
 #
-# $Id: DbSearch.pm,v 2.15 2002/07/15 13:41:12 mheins Exp $
+# $Id: DbSearch.pm,v 2.16 2002/08/02 03:04:53 mheins Exp $
 #
 # Adapted for use with Interchange from Search::TextSearch
 #
@@ -26,7 +26,7 @@
=20
 @ISA =3D qw(Vend::Search);
=20
-$VERSION =3D substr(q$Revision: 2.15 $, 10);
+$VERSION =3D substr(q$Revision: 2.16 $, 10);
=20
 use Search::Dict;
 use strict;
@@ -226,7 +226,7 @@
=20
 		if(! $s->{mv_no_hide} and my $hf =3D $dbref->config('HIDE_FIELD')) {
 #::logDebug("found hide_field $hf");
-			$lqual =3D~ s/^\s*WHERE\s+/ WHERE $hf !=3D 1 /
+			$lqual =3D~ s/^\s*WHERE\s+/ WHERE $hf !=3D 1 AND /
 				or $lqual =3D " WHERE $hf !=3D 1";
 #::logDebug("lqual now '$lqual'");
 		}