Bugzilla – Attachment 67100 Details for
Bug 18374
Respect QueryAutoTruncate syspref in Elasticsearch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18374: (QA followup) Remove warning in Elasticsearch/Search.pm
Bug-18374-QA-followup-Remove-warning-in-Elasticsea.patch (text/plain), 1022 bytes, created by
Tomás Cohen Arazi (tcohen)
on 2017-09-12 15:17:56 UTC
(
hide
)
Description:
Bug 18374: (QA followup) Remove warning in Elasticsearch/Search.pm
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2017-09-12 15:17:56 UTC
Size:
1022 bytes
patch
obsolete
>From 022b2727e926e23e592e31974f0c33e40e28b961 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 12 Sep 2017 12:15:07 -0300 >Subject: [PATCH] Bug 18374: (QA followup) Remove warning in > Elasticsearch/Search.pm > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/SearchEngine/Elasticsearch/Search.pm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/Koha/SearchEngine/Elasticsearch/Search.pm b/Koha/SearchEngine/Elasticsearch/Search.pm >index cec1cb7..4d584f7 100644 >--- a/Koha/SearchEngine/Elasticsearch/Search.pm >+++ b/Koha/SearchEngine/Elasticsearch/Search.pm >@@ -148,8 +148,10 @@ sub search_compat { > $branches, $query_type, $scan > ) = @_; > my %options; >+ if ( !defined $offset or $offset < 0 ) { >+ $offset = 0; >+ } > $options{offset} = $offset; >- $offset = 0 if $offset < 0; > $options{expanded_facet} = $expanded_facet; > my $results = $self->search($query, undef, $results_per_page, %options); > >-- >2.7.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 18374
:
61806
|
61952
|
61953
|
61954
|
61955
|
61983
|
64903
|
64904
|
67098
|
67099
|
67100
|
67467
|
67468
|
67469
|
67470
|
67727
|
68062
|
68063
|
68064
|
68065
|
68066
|
68067
|
68068