Bug 36098: Fix storage_method pass

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 5572567143)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 941f34626a)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 8914f906b4)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
David Cook 2024-02-15 22:49:19 +00:00 committed by Frédéric Demians
parent 516efe873e
commit 39181aa6ea

View file

@ -51,7 +51,8 @@ will be created.
=cut
sub _get_session_params {
my ( $class, $storage_method ) = @_;
my ( $class, $args ) = @_;
my $storage_method = $args->{storage_method};
$storage_method ||= C4::Context->preference('SessionStorage');
if ( $storage_method eq 'mysql' ) {
my $dbh = C4::Context->dbh;