Bug 21056: Add another flush later

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 5abcd3312a)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2018-07-31 12:14:54 -03:00 committed by Martin Renvoize
parent 0a5dabc271
commit 88a2c8886c
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,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,