oops, last commit was unintentional. rolling back to previous revision
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Jan 2009 17:47:18 +0000 (17:47 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Jan 2009 17:47:18 +0000 (17:47 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11815 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Actor.pm

index acdef57..58ad587 100644 (file)
@@ -1110,24 +1110,9 @@ sub patron_adv_search {
        my $e = new_editor(authtoken=>$auth);
        return $e->event unless $e->checkauth;
        return $e->event unless $e->allowed('VIEW_USER');
-
-    my $bcids = [];
-    if(my $bc = $$search_hash{card}{value}) {
-        $bcids = $e->json_query({
-            select => {ac => ['usr']}, 
-            from => {ac => {au => {field => 'id', fkey => 'usr'}}}, 
-            where => {'+ac' => {barcode => {like => "$bc%"}, active => 't'}, '+au' => {deleted => 'f'}}
-        });
-        $bcids = map [ {$_->{usr} ] @$bcids;
-    }
-
-    my $ids = $U->storagereq(
+       return $U->storagereq(
                "open-ils.storage.actor.user.crazy_search", $search_hash, 
             $search_limit, $search_sort, $include_inactive, $e->requestor->ws_ou, $search_depth);
-
-    my %h; # dedup
-    $h{$_} = 1 for (@$bcids, $ids);
-    return [keys %h];
 }