From a981f630dd1c1a4e9a0ef80291556f89fdb1b1a0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 31 Jul 2018 12:14:54 -0300 Subject: [PATCH] Bug 21056: Add another flush later Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens (cherry picked from commit 5abcd3312adc02a14465a0781f735b8494d60f42) Signed-off-by: Martin Renvoize (cherry picked from commit 88a2c8886c4cf37e6dff00cffd26674d6ac548e2) Signed-off-by: Fridolin Somers --- circ/selectbranchprinter.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/circ/selectbranchprinter.pl b/circ/selectbranchprinter.pl index 68a687efda..3d9ced683b 100755 --- a/circ/selectbranchprinter.pl +++ b/circ/selectbranchprinter.pl @@ -81,6 +81,7 @@ if ( $branch and my $library = Koha::Libraries->find($branch) ) { if ($printer) { if (! $userenv_printer or $userenv_printer ne $printer ) { $session->param('branchprinter', $printer); # update sesssion in DB + $session->flush(); $template->param('new_printer', $printer); # update template push @updated, { updated_printer => 1, -- 2.39.5