Bugzilla – Attachment 126658 Details for
Bug 29284
Koha dies when an analytics search fails in Elasticsearch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29284: (follow-up) Fix code that I copied from too
Bug-29284-follow-up-Fix-code-that-I-copied-from-to.patch (text/plain), 1.38 KB, created by
Nick Clemens (kidclamp)
on 2021-10-21 10:33:48 UTC
(
hide
)
Description:
Bug 29284: (follow-up) Fix code that I copied from too
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-10-21 10:33:48 UTC
Size:
1.38 KB
patch
obsolete
>From 8ecd48ddb0837431d3ea8e35f87063ec64ec8e18 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 21 Oct 2021 10:31:18 +0000 >Subject: [PATCH] Bug 29284: (follow-up) Fix code that I copied from too > >--- > catalogue/search.pl | 5 ++++- > opac/opac-search.pl | 5 ++++- > 2 files changed, 8 insertions(+), 2 deletions(-) > >diff --git a/catalogue/search.pl b/catalogue/search.pl >index 9c99bbe4f3..c0063a1b40 100755 >--- a/catalogue/search.pl >+++ b/catalogue/search.pl >@@ -507,7 +507,10 @@ eval { > }; > > if ($@ || $error) { >- $template->param(query_error => $error.$@); >+ my $query_error = q{}; >+ $query_error .= $error if $error; >+ $query_error .= $@ if $@; >+ $template->param(query_error => $query_error); > output_html_with_http_headers $cgi, $cookie, $template->output; > exit; > } >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 0bd1026faf..22e97da817 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -574,7 +574,10 @@ if ($tag) { > > # use Data::Dumper; print STDERR "-" x 25, "\n", Dumper($results_hashref); > if (not $tag and ( $@ || $error)) { >- $template->param(query_error => $error.$@); >+ my $query_error = q{}; >+ $query_error .= $error if $error; >+ $query_error .= $@ if $@; >+ $template->param(query_error => $query_error); > output_html_with_http_headers $cgi, $cookie, $template->output; > exit; > } >-- >2.20.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 29284
:
126583
|
126584
|
126586
|
126587
|
126656
|
126657
| 126658