Koha-clms/circ
Jonathan Druart c0e64cbc14 Bug 18022: Fix possible crash if CircAutoPrintQuickSlip=clear screen
If CircAutoPrintQuickSlip is set to clear screen, the $borrowernumber variable
is reset but $borrower.
In 16.11.x and before that causes the app to crash, because
$borrower->{flags} is set to a hashref by GetMemberDetails, if
$borrowernumber is set.

This case is better handled in master (17.05) but side-effects could
happen: if $borrowernumber is reset, $borrower should be reset too.

The way to drive this behaviour is terrible and lot of things should be
done to clean this area. This patch is a quick and easy fix to make it
backportable easily.

Test plan:
On master, no change expected
On 16.11 and before:
0. Set CircAutoPrintQuickSlip=clear screen
1. Create a new patron
2. Set permission for this patron to 'reservesforothers' (or something
else).
3. Go on the circulation tab
4. Do not fill the barcode input and submit
=> Without this patch you will get an error
Can't use string ("64") as a HASH ref while "strict refs"....
=> With this patch apply you will get a blank screen (expected
behaviour).

I would recommend to test this patch with the other value of
CircAutoPrintQuickSlip as well

(cherry picked from commit 34565e7f7d)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
2017-04-21 11:32:19 +02:00
..
add_message.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
bookcount.pl Bug 14890: Simplify processing to display a date with hours 2015-10-08 10:59:05 -03:00
branchoverdues.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
branchtransfers.pl Bug 12045 - Transfer impossible if barcode includes spaces 2016-01-27 15:36:03 +01:00
circulation-home.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
circulation.pl Bug 18022: Fix possible crash if CircAutoPrintQuickSlip=clear screen 2017-04-21 11:32:19 +02:00
del_message.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
hold-transfer-slip.pl Bug 13482: Prevent race condition on printing a ReserveSlip 2015-04-22 16:32:15 -03:00
offline-mf.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
offline.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
on-site_checkouts.pl Bug 11201: Add a in-house use list pages 2015-03-31 11:30:55 -03:00
overdue.pl Bug 17001: fix due date filter on the overdue report 2016-08-24 12:45:36 +02:00
pendingreserves.pl Bug 15560: Fix display of multiple item types in pending reserves report 2016-01-25 12:41:55 +01:00
renew.pl Bug 15462 - Unable to renew books via circ/renew.pl 2016-01-12 14:08:56 +01:00
reserveratios.pl Bug 15997 - Hold Ratios for ordered items doesn't count orders where AcqCreateItem is set to 'receiving' 2016-03-23 08:56:18 +01:00
returns.pl Bug 16154: CGI->multi_param - Force scalar context 2016-05-16 14:42:43 +02:00
selectbranchprinter.pl Bug 16154: CGI->multi_param - Force scalar context 2016-05-16 14:42:43 +02:00
transfer-slip.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
transferstoreceive.pl Bug 15344: Remove some other calls of GetMemberDetails from pl scripts 2015-12-31 10:29:16 +01:00
view_holdsqueue.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
waitingreserves.pl Bug 17010: Fix syntax error (RMaint followup) 2016-09-16 14:07:28 +02:00
ypattrodue-attr-search-authvalue.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
ysearch.pl Bug 14871: Extend the patrons search to search like %$term% (checkout tab) 2015-10-21 13:31:41 -03:00