From fd34195f23ac8307ba0b0e0bf4d4008114108844 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 27 Nov 2011 22:07:28 +0100 Subject: [PATCH] [3.4.x] Bug 7085: Problems with searching for orders in acquisitions Same patch as for 3.6.x and HEAD, but without isbn, as this field was introduced to search later. --- C4/Acquisition.pm | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index 738fe16..67a6f41 100644 --- a/C4/Acquisition.pm +++ b/C4/Acquisition.pm @@ -1555,28 +1555,28 @@ sub GetHistory { my @query_params = (); - if ( defined $title ) { + if ( $title ) { $query .= " AND biblio.title LIKE ? "; $title =~ s/\s+/%/g; push @query_params, "%$title%"; } - if ( defined $author ) { + if ( $author ) { $query .= " AND biblio.author LIKE ? "; push @query_params, "%$author%"; } - if ( defined $name ) { + if ( $name ) { $query .= " AND aqbooksellers.name LIKE ? "; push @query_params, "%$name%"; } - if ( defined $from_placed_on ) { + if ( $from_placed_on ) { $query .= " AND creationdate >= ? "; push @query_params, $from_placed_on; } - if ( defined $to_placed_on ) { + if ( $to_placed_on ) { $query .= " AND creationdate <= ? "; push @query_params, $to_placed_on; } -- 1.7.5.4