From 0d7be948cddd090992bb9eb346f74112394c60bf Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Wed, 15 Feb 2012 20:18:57 -0600 Subject: [PATCH] Bug 7318 - filtering patron card creator by category code does nothing This patch should fix the search issue - do note you have to use the *code* and not the *description* To test: * replicate the bug: * do a patron search in the patron card creator, with the sample data installed, for category code PT - you should get results from all category codes. * Apply the patch * do a patron search in the patron card creator, with the sample data installed, for category code PT * you will get only results in patron category PT. Signed-off-by: Chris Cormack Fixes the search --- patroncards/members-search.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/patroncards/members-search.pl b/patroncards/members-search.pl index dfa0462..46f2fe8 100755 --- a/patroncards/members-search.pl +++ b/patroncards/members-search.pl @@ -49,7 +49,7 @@ $member =~ s/,//g; #remove any commas from search string $member =~ s/\*/%/g; if ($member || $category) { - my $results = $category ? Search({''=>$member, category_type=>$category}, $orderby) + my $results = $category ? Search({''=>$member, categorycode=>$category}, $orderby) : Search($member, $orderby); my $count = $results ? @$results : 0; -- 1.7.5.4