diff --git a/C4/Search.pm b/C4/Search.pm index 33f16122e1..30d8b4fe5a 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;