[Koha-patches] [PATCH] Bug 3794 (Receive Order shows multiple items if a title contains ordernumber)
Marcel de Rooy
m.de.rooy at rijksmuseum.nl
Mon May 17 11:44:44 CEST 2010
---
C4/Acquisition.pm | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm
index 3e274fe..ad9003c 100644
--- a/C4/Acquisition.pm
+++ b/C4/Acquisition.pm
@@ -681,7 +681,9 @@ C<@results> is an array of references-to-hash with the following keys:
sub SearchOrder {
my ( $search, $id, $biblionumber ) = @_;
my $dbh = C4::Context->dbh;
- my @data = split( ' ', $search );
+ my @data = $search=~/^\d{1,9}$/? ('z'x50): split( ' ', $search );
+ #MR: resolve bug 3794 about order number in title
+ #zx50 is just a tric to not find title but not harm code below..
my @searchterms;
if ($id) {
@searchterms = ($id);
--
1.6.0.6
More information about the Koha-patches
mailing list