From 636536093b9ce4bde7286dad20b9925238070d6c Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Wed, 24 Jan 2024 15:31:54 +0000 Subject: [PATCH] Bug 27428: (follow-up) Fix Session Signed-off-by: David Nind --- opac/svc/elasticsearch/opac-elasticsearch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/svc/elasticsearch/opac-elasticsearch.pl b/opac/svc/elasticsearch/opac-elasticsearch.pl index d8d8d22ab5..8673a7c559 100755 --- a/opac/svc/elasticsearch/opac-elasticsearch.pl +++ b/opac/svc/elasticsearch/opac-elasticsearch.pl @@ -10,7 +10,7 @@ use Koha::SearchEngine::Elasticsearch::Browse; my $browser = Koha::SearchEngine::Elasticsearch::Browse->new( { index => 'biblios' } ); my $cgi = CGI->new; -my $session = CGI::Session->new(); +my $session = CGI::Session->load() or die CGI::Session->errstr(); $session->param( -name => 'q', -value => $cgi->param("q") ); $session->param( -name => 'key', -value => $cgi->param("key") ); -- 2.39.2