[Koha-patches] [PATCH 07/12] MT3228 : trailing space block search
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Sat May 1 00:19:49 CEST 2010
From: Paul Poulain <paul.poulain at biblibre.com>
Removing trailing searchs befor operands which block searches
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent at biblibre.com>
---
C4/Search.pm | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/C4/Search.pm b/C4/Search.pm
index 33f1612..30d8b4f 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -1079,6 +1079,7 @@ sub buildQuery {
# COMBINE OPERANDS, INDEXES AND OPERATORS
if ( $operands[$i] ) {
+ $operands[$i]=~s/^\s+//;
# A flag to determine whether or not to add the index to the query
my $indexes_set;
--
1.6.3.3
More information about the Koha-patches
mailing list