Bugzilla – Attachment 6572 Details for
Bug 6786
False detection of index names in Search; make index names case insensitive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Follow up fix for hyphens in index names
patch.txt (text/plain), 946 bytes, created by
Marcel de Rooy
on 2011-12-05 07:47:49 UTC
(
hide
)
Description:
Follow up fix for hyphens in index names
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2011-12-05 07:47:49 UTC
Size:
946 bytes
patch
obsolete
>From 4d61a134b21603b34c987ef6426b1ea1712a1dbe Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Sun, 4 Dec 2011 17:29:05 +0100 >Subject: [PATCH] Bug 6786: Follow up fixing index names with hyphens >Content-Type: text/plain; charset="utf-8" > >Adds hyphen to regex looking for index names in buildQuery. >Test by searching on Control-number=... >--- > C4/Search.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 98db887..fdb3479 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1075,7 +1075,7 @@ sub buildQuery { > my $cclq = 0; > my $cclindexes = getIndexes(); > if ( $query !~ /\s*ccl=/ ) { >- while ( !$cclq && $query =~ /(?:^|\W)(\w+)(,\w+)*[:=]/g ) { >+ while ( !$cclq && $query =~ /(?:^|\W)([\w-]+)(,[\w-]+)*[:=]/g ) { > my $dx = lc($1); > $cclq = grep { lc($_) eq $dx } @$cclindexes; > } >-- >1.6.0.6 >
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 6786
:
5145
|
5251
|
6572
|
6573