Bugzilla – Attachment 67469 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), 1.00 KB, created by
Julian Maurice
on 2017-09-29 14:21:06 UTC
(
hide
)
Description:
Bug 18374: (QA followup) Remove warning in Elasticsearch/Search.pm
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2017-09-29 14:21:06 UTC
Size:
1.00 KB
patch
obsolete
>From 49eeec65e18366fd9f4fa728b48507d304ef372a 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 cec1cb7fb6..4d584f7906 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.11.0
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