(bug #3737) fix title search in order history
authorNahuel ANGELINETTI <nahuel.angelinetti@biblibre.com>
Thu, 29 Oct 2009 15:47:17 +0000 (16:47 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Fri, 14 May 2010 07:47:58 +0000 (09:47 +0200)
C4/Acquisition.pm

index 3e274fe..88f0c6d 100644 (file)
@@ -1142,6 +1142,7 @@ sub GetHistory {
         
         if ( defined $title ) {
             $query .= " AND biblio.title LIKE ? ";
+            $title =~ s/\s+/%/g;
             push @query_params, "%$title%";
         }