Bugzilla – Attachment 7751 Details for
Bug 7318
Filtering Patron Card Creator by Category Code Does Nothing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7318 - filtering patron card creator by category code does nothing
Bug-7318---filtering-patron-card-creator-by-catego.patch (text/plain), 1.43 KB, created by
Chris Cormack
on 2012-02-19 06:55:02 UTC
(
hide
)
Description:
Bug 7318 - filtering patron card creator by category code does nothing
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-02-19 06:55:02 UTC
Size:
1.43 KB
patch
obsolete
>From 0d7be948cddd090992bb9eb346f74112394c60bf Mon Sep 17 00:00:00 2001 >From: Liz Rea <wizzyrea@gmail.com> >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 <chris@bigballofwax.co.nz> > >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7318
:
6570
|
7269
|
7670
|
7672
| 7751