adding address searching for cloned users
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 16 Aug 2006 19:37:29 +0000 (19:37 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 16 Aug 2006 19:37:29 +0000 (19:37 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5540 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm

index 50f03a9..1c9b959 100644 (file)
@@ -324,12 +324,12 @@ sub patron_search {
        my $select = '';
        if ($usr_where) {
                if ($addr_where) {
-                       $select = "$u_select INTERSECT $a_select INTERSECT $clone_select";
+                       $select = "$u_select INTERSECT $a_select UNION $clone_select";
                } else {
                        $select = $u_select;
                }
        } elsif ($addr_where) {
-               $select = "$a_select INTERSECT $clone_select";
+               $select = "$a_select UNION $clone_select";
        } else {
                return undef;
        }