Bug 12662: Ajax-based check in does not work for some system preference settings enabled

To reproduce:

- enable "InProcessingToShelvingCart" or "ReturnToShelvingCart"
system preference,
- for a sample patron with 1+ checkouts, try to check in some item[s]
using checkboxes in the "Check in" column in the checkouts table
which is displayed in the "Check out" or "Details" patron account tabs,
- observe that clicking "Renew or return checked items" button only
results in ajax "spinning wheel" stuck in infinite loop; check-in
operation is not performed.

To test:

- follow the steps above to reproduce this bug
- apply patch
- redo the test; ensure that this issue is no longer reproductible.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jacek Ablewicz 2014-07-25 10:56:52 +02:00 committed by Tomas Cohen Arazi
parent 509da0289c
commit 0f4ceeb38d

View file

@ -23,7 +23,7 @@ use CGI;
use JSON qw(to_json);
use C4::Circulation;
use C4::Items qw(GetBarcodeFromItemnumber);
use C4::Items qw(GetBarcodeFromItemnumber GetItem);
use C4::Context;
use C4::Auth qw(check_cookie_auth);