Bugzilla – Attachment 23742 Details for
Bug 11410
Cataloging search finds no results for searches with ampersands
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 11410 - Cataloging search finds no results for searches with ampersands
PASSED-QA-Bug-11410---Cataloging-search-finds-no-r.patch (text/plain), 1.69 KB, created by
Katrin Fischer
on 2013-12-20 23:49:58 UTC
(
hide
)
Description:
[PASSED QA] Bug 11410 - Cataloging search finds no results for searches with ampersands
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2013-12-20 23:49:58 UTC
Size:
1.69 KB
patch
obsolete
>From 971bcc268dc2b6d68f4bd525c2007a9c71d96ae8 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 17 Dec 2013 16:04:10 -0500 >Subject: [PATCH] [PASSED QA] Bug 11410 - Cataloging search finds no results > for searches with ampersands > >The cataloging search is passing the incorrect variable to SimpleSearch. >I'm sure this is causing other issues, but the one I have identified is >that any searches with an "&" in them return no results. > >Test Plan: >1) Catalog a new record titled "Cats & Dogs" >2) Rebuild your zebra index so this record is indexed >3) Browse to cataloguing/addbooks.pl >4) Search for "Cats & Dogs" >5) Notice you get no results >6) Apply this patch >7) Repeat the search >8) Notice your result now shows up! > >Signed-off-by: Heather Braum <hbraum@nekls.org> >Signed-off-by: Suzanne Fayle <sfayle@roseman.edu> >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >This works as described, passes all tests and QA script. >Note: Because $query = $builtquery when the QueryParser is used, >this problem is only visible when UseQueryParser is set to "Don't try". >--- > cataloguing/addbooks.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl >index b22a646..35cfa2c 100755 >--- a/cataloguing/addbooks.pl >+++ b/cataloguing/addbooks.pl >@@ -82,7 +82,7 @@ if ($query) { > } > > # find results >- my ( $error, $marcresults, $total_hits ) = SimpleSearch($query, $results_per_page * ($page - 1), $results_per_page); >+ my ( $error, $marcresults, $total_hits ) = SimpleSearch($builtquery, $results_per_page * ($page - 1), $results_per_page); > > if ( defined $error ) { > $template->param( error => $error ); >-- >1.8.3.2
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 11410
:
23614
|
23722
| 23742