[Koha-patches] [PATCH 02/92] followup : auto_truncation 3287252c0
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Tue Dec 22 01:19:55 CET 2009
truncated words bore a double * which would create an error
---
C4/Search.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/Search.pm b/C4/Search.pm
index c8eddab..ff1a69f 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -935,7 +935,7 @@ sub buildQuery {
unless ( $index =~ /(st-|phr|ext)/ ) {
#FIXME only valid with LTR scripts
$operand=join(" ",map{
- "$_*"
+ (index($_,"*")>0?"$_":"$_*")
}split (/\s+/,$operand));
warn $operand if $DEBUG;
}
--
1.6.3.3
More information about the Koha-patches
mailing list