From 80608978b798821be1b10329ba49ed4012ddc268 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Wed, 5 Dec 2018 18:17:14 -0300
Subject: [PATCH] Bug 21928: (bug 18789 follow-up) Fix
 CircAutoPrintQuickSlip=clear

caused by commit 105b3e10e8b31b7de6d733e676c3e661a39b1280

bug 18789

To recreate:
1 - Set CircAutoPrintQuickSlip to 'clear'
2 - Bring up a patron in circulation
3 - Click in checkout box and hit enter to submit empty
4 - Patron is partially loaded

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
---
 circ/circulation.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/circ/circulation.pl b/circ/circulation.pl
index 98b011bd11..6b8708ae06 100755
--- a/circ/circulation.pl
+++ b/circ/circulation.pl
@@ -238,6 +238,7 @@ if ( $print eq 'yes' && $borrowernumber ne '' ) {
     }
     $query->param( 'borrowernumber', '' );
     $borrowernumber = '';
+    undef $patron;
 }
 
 #
-- 
2.11.0