Bugzilla – Attachment 170732 Details for
Bug 30745
Elasticsearch: Search never returns with after-date and/or before-date in label batch item search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30745: Fix error 500 when item is not found while using zebra
Bug-30745-Fix-error-500-when-item-is-not-found-whi.patch (text/plain), 1.24 KB, created by
Hammat wele
on 2024-08-26 17:46:17 UTC
(
hide
)
Description:
Bug 30745: Fix error 500 when item is not found while using zebra
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2024-08-26 17:46:17 UTC
Size:
1.24 KB
patch
obsolete
>From a883493db2d8fec7d7f1e9e4544d60faeec4ca0e Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Mon, 26 Aug 2024 17:36:10 +0000 >Subject: [PATCH] Bug 30745: Fix error 500 when item is not found while using > zebra > >Plan test : >- Apply this batch >- Set Zebra as searchEngine >- Go to Cataloging -> # Label creator >- Click on New, Select Label batch >- Click on Add item(s) >- Search for for inexisting items >=> The page should refresh itself (so that it has the same behavior as elasticSearch) >--- > labels/label-item-search.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/labels/label-item-search.pl b/labels/label-item-search.pl >index 8cebec8278..765119f4f9 100755 >--- a/labels/label-item-search.pl >+++ b/labels/label-item-search.pl >@@ -85,7 +85,7 @@ if ( $op eq "do_search" ) { > undef, undef, $query_type, undef > ); > >- if (!defined $error && @{$results->{biblioserver}{RECORDS}} ) { >+ if (!defined $error && defined($results) && @{$results->{biblioserver}{RECORDS}} > 0 ) { > $show_results = grep { defined $_ } @{$results->{biblioserver}{RECORDS}}; > $marcresults = [ grep { defined $_ } @{$results->{biblioserver}{RECORDS}} ]; > $total_hits = $results->{biblioserver}{hits}; >-- >2.34.1
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 30745
:
134952
|
134953
|
135784
|
135785
|
135966
|
135967
|
157192
|
157194
|
157195
|
157934
|
162855
|
163955
|
170677
|
170678
|
170679
|
170680
|
170681
|
170682
|
170683
|
170684
|
170729
|
170730
|
170731
|
170732
|
170733
|
171002
|
171003
|
171004
|
171005
|
171006
|
173280
|
173943
|
173944
|
173945
|
173946
|
173947
|
174486
|
174487
|
174488
|
174489
|
174490
|
174491