Bugzilla – Attachment 162314 Details for
Bug 36098
Create Koha::Session module
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36098: Default to 'file' if pref does not exist
Bug-36098-Default-to-file-if-pref-does-not-exist.patch (text/plain), 1.02 KB, created by
Jonathan Druart
on 2024-02-21 08:43:25 UTC
(
hide
)
Description:
Bug 36098: Default to 'file' if pref does not exist
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-02-21 08:43:25 UTC
Size:
1.02 KB
patch
obsolete
>From 3db6d223c7fe79e50ebdf63e6f8760919fd6df71 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 21 Feb 2024 09:42:16 +0100 >Subject: [PATCH] Bug 36098: Default to 'file' if pref does not exist > >During the installer process there is a bunch of warnings > "Use of uninitialized value $storage_method in string eq at" >--- > Koha/Session.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Session.pm b/Koha/Session.pm >index d9e9f79dd60..bb5b26e9ce7 100644 >--- a/Koha/Session.pm >+++ b/Koha/Session.pm >@@ -53,7 +53,7 @@ will be created. > sub _get_session_params { > my ( $class, $args ) = @_; > my $storage_method = $args->{storage_method}; >- $storage_method ||= C4::Context->preference('SessionStorage'); >+ $storage_method ||= C4::Context->preference('SessionStorage') || 'file'; > if ( $storage_method eq 'mysql' ) { > my $dbh = C4::Context->dbh; > return { dsn => "serializer:yamlxs;driver:MySQL;id:md5", dsn_args => { Handle => $dbh } }; >-- >2.34.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 36098
:
162167
|
162200
|
162201
|
162204
|
162205
|
162228
|
162231
| 162314