Bug 30532: (bug 29957 follow-up) Fix '$cookie->value'
We got
Can't call method "value" on unblessed reference at /kohadevbox/koha/opac/opac-messaging.pl line 86
$cookie can be an arrayref, we should retrieve the session id using
CGI->cookie('CGISESSID')
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
e26dd8f09f
commit
cbbf847fde
|
|
@ -83,7 +83,7 @@ if ( C4::Context->preference("SMSSendDriver") eq 'Email' ) {
|
|||
$template->param( sms_providers => \@providers, sms_provider_id => $patron->sms_provider_id );
|
||||
}
|
||||
|
||||
my $new_session_id = $cookie->value;
|
||||
my $new_session_id = $query->cookie('CGISESSID');
|
||||
$template->param(
|
||||
csrf_token => Koha::Token->new->generate_csrf({
|
||||
session_id => $new_session_id,
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ END_OF_BODY
|
|||
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
|
||||
}
|
||||
else {
|
||||
my $new_session_id = $cookie->value;
|
||||
my $new_session_id = $query->cookie('CGISESSID');
|
||||
$template->param(
|
||||
bib_list => $bib_list,
|
||||
url => "/cgi-bin/koha/opac-sendbasket.pl",
|
||||
|
|
|
|||
|
|
@ -77,7 +77,8 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
|
|||
flagsrequired => { reports => $flagsrequired },
|
||||
}
|
||||
);
|
||||
my $session = $cookie ? get_session($cookie->value) : undef;
|
||||
my $session_id = $input->cookie('CGISESSID');
|
||||
my $session = $session_id ? get_session($session_id) : undef;
|
||||
|
||||
my $filter;
|
||||
if ( $input->param("filter_set") or $input->param('clear_filters') ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue