From bd188b9c6eb31390d2b52681749124f08094a031 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 13 Jan 2009 17:47:18 +0000 Subject: [PATCH] oops, last commit was unintentional. rolling back to previous revision git-svn-id: svn://svn.open-ils.org/ILS/trunk@11815 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Actor.pm | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm b/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm index acdef5736d..58ad5875e8 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm @@ -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]; } -- 2.11.0