(bug #3737) fix title search in order history
authorNahuel ANGELINETTI <nahuel.angelinetti@biblibre.com>
Mon, 10 Jan 2011 16:37:02 +0000 (16:37 +0000)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 10 Jan 2011 19:57:07 +0000 (08:57 +1300)
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Acquisition.pm

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