followup : auto_truncation 3287252c0
[koha.git] / C4 / Search.pm
index f600685..a468821 100644 (file)
@@ -1133,7 +1133,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;
                                        }