Bugzilla – Attachment 6113 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]
[SIGNED-OFF] Fix for Bug 7085 - Problems with searching for orders in acquisitions
SIGNED-OFF-Fix-for-Bug-7085---Problems-with-search.patch (text/plain), 1.91 KB, created by
Katrin Fischer
on 2011-10-29 13:48:29 UTC
(
hide
)
Description:
[SIGNED-OFF] Fix for Bug 7085 - Problems with searching for orders in acquisitions
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2011-10-29 13:48:29 UTC
Size:
1.91 KB
patch
obsolete
>From e4ae0c7cf7eb644a0f03ec9450dc547b33336943 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 25 Oct 2011 10:16:02 -0400 >Subject: [PATCH] [SIGNED-OFF] Fix for Bug 7085 - Problems with searching for > orders in acquisitions > >Changing "if ( defined $input )" to "if ( $input )" in the section >of the script which builds the order search query seems to give >successful searches where they didn't exist before. Searches from >the advanced order search screen work with title, author, vendor, >basket number, date, etc. > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Searches for date ranges, title and author keywords give >me the correct results now. >--- > C4/Acquisition.pm | 12 ++++++------ > 1 files changed, 6 insertions(+), 6 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index 19c4f08..a0dda42 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -1581,33 +1581,33 @@ 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 $isbn ) { >+ if ( $isbn ) { > $query .= " AND biblioitems.isbn LIKE ? "; > push @query_params, "%$isbn%"; > } > >- 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