Bugzilla – Attachment 77336 Details for
Bug 21056
Changing the logged in library can fail sporadically
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21056: Changing the logged in library can fail sporadically
Bug-21056-Changing-the-logged-in-library-can-fail-.patch (text/plain), 1.41 KB, created by
Jonathan Druart
on 2018-07-31 15:16:20 UTC
(
hide
)
Description:
Bug 21056: Changing the logged in library can fail sporadically
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-07-31 15:16:20 UTC
Size:
1.41 KB
patch
obsolete
>From 711969dbdf13ce9c70a44115a837f364495a0f4d Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 9 Jul 2018 14:05:29 -0400 >Subject: [PATCH] Bug 21056: Changing the logged in library can fail > sporadically > >We are getting reports that sometimes changing the logged in library via selectbranchprinter.pl sometimes appears to fail. Flushing the session after updating the branch appears to fix this. > >Test Plan: >1) Change your logged in library repeatedly. Hopefully ( sort of ) it will fail to change. > You may want to try various browsers. >2) Apply this patch >3) Note the change no longer fails > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > circ/selectbranchprinter.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/circ/selectbranchprinter.pl b/circ/selectbranchprinter.pl >index 03fa65b1ec..cff7f08013 100755 >--- a/circ/selectbranchprinter.pl >+++ b/circ/selectbranchprinter.pl >@@ -62,6 +62,7 @@ if ( $branch and my $library = Koha::Libraries->find($branch) ) { > $template->param(LoginBranchcode => $branch); # update template for new branch > $session->param('branchname', $branchname); # update sesssion in DB > $session->param('branch', $branch); # update sesssion in DB >+ $session->flush(); > push @updated, { > updated_branch => 1, > old_branch => $userenv_branch, >-- >2.11.0
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 21056
:
76800
| 77336 |
77337