From: gmc Date: Mon, 23 Aug 2010 15:09:13 +0000 (+0000) Subject: display copy counts correctly in staff search results X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=50b1d21b441e615ece68d1c6fc8110e417201409;p=evergreen%2Fpines.git display copy counts correctly in staff search results Also fixes following warning: Useless use of a constant in void context at .../OpenILS/Application/Search/Biblio.pm line 263. Signed-off-by: Galen Charlton git-svn-id: svn://svn.open-ils.org/ILS/trunk@17309 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index 2ec58be197..3d33837e3c 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm @@ -260,7 +260,7 @@ sub record_id_to_copy_count { return [] unless $record_id; my $key = $self->api_name =~ /metarecord/ ? 'metarecord' : 'record'; - my $staff =~ $self->api_name =~ /staff/ ? 't' : 'f'; + my $staff = $self->api_name =~ /staff/ ? 't' : 'f'; my $data = $U->cstorereq( "open-ils.cstore.json_query.atomic",