From 50b1d21b441e615ece68d1c6fc8110e417201409 Mon Sep 17 00:00:00 2001 From: gmc Date: Mon, 23 Aug 2010 15:09:13 +0000 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.11.0