Bug 21928: (bug 18789 follow-up) Fix CircAutoPrintQuickSlip=clear
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 5 Dec 2018 21:17:14 +0000 (18:17 -0300)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 8 Jan 2019 23:27:36 +0000 (23:27 +0000)
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
5 - Apply patch
6 - Restart all the things
7 - Test again
8 - Patron is cleared correctly

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

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit a440f6a4102f73073c76a31ad2d015be2af8ef48)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 25a22f2e639d368cff4813043130e29e53ab6940)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

circ/circulation.pl

index 6f51e38..9cda45f 100755 (executable)
@@ -238,6 +238,7 @@ if ( $print eq 'yes' && $borrowernumber ne '' ) {
     }
     $query->param( 'borrowernumber', '' );
     $borrowernumber = '';
+    undef $patron;
 }
 
 #