--- 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 _______________________________________________ Koha-patches mailing list Koha-patches@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-patches