Bug 13482: Prevent race condition on printing a ReserveSlip
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 16 Apr 2015 12:10:30 +0000 (14:10 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 22 Apr 2015 19:32:15 +0000 (16:32 -0300)
commit2796eb21586ea7f23c2ca5d969d242b78b1cfa09
treea090d387853dbba64054c17861e4a236819295d2
parentd1cdbf9d56038f0305f9be90205c0315882ec711
Bug 13482: Prevent race condition on printing a ReserveSlip

The problem has been well described by Kyle and Nicole on bug 7255
description and comment 1.

With this counter patch, I suggest to popup AFTER the return has been
confirmed. This will remove the race condition and avoid to pass
itemnumber to the pl file as in the patch submitted by Olli.

Only the borrowernumber and biblionumber are needed (transfer and op are
never used by circ/hold-transfer-slip.pl).

Test plan:
It is very hard to know all cases (at least 6) where the popup is
displayed. Try at least to get the hold and the transfer confirmation
messages.
You should get the popup if you click on "print slip" button.

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
circ/hold-transfer-slip.pl
circ/returns.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt