Bugzilla – Attachment 6439 Details for
Bug 7085
Problems with searching for orders in acquisitions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
3.4.x version of patch
0001-3.4.x-Bug-7085-Problems-with-searching-for-orders-in.patch (text/plain), 1.53 KB, created by
Katrin Fischer
on 2011-11-27 21:12:34 UTC
(
hide
)
Description:
3.4.x version of patch
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2011-11-27 21:12:34 UTC
Size:
1.53 KB
patch
obsolete
>From fd34195f23ac8307ba0b0e0bf4d4008114108844 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7085
:
6048
|
6050
|
6113
| 6439