From a661c921ce3d116d8410eb212fe7dc16e5e1b17e 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 --- 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.34.1