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>
This commit is contained in:
David Cook 2024-02-15 22:49:19 +00:00 committed by Fridolin Somers
parent be03ca910f
commit 941f34626a

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;