]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP 1444130: Add max_chunk_size guards to Holds.pm. user/dyrcona/lp1444130_max_chunk_size_guards
authorJason Stephenson <jstephenson@mvlc.org>
Tue, 14 Apr 2015 14:43:49 +0000 (10:43 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Tue, 14 Apr 2015 20:30:01 +0000 (16:30 -0400)
commitf6318952a647a2acb8f0853927063d9322dd8714
tree01099e2661e39c192ce5960844565073f472e4a4
parent73d671a4642cfb64dcd194868d7f381a0f277d8c
LP 1444130: Add max_chunk_size guards to Holds.pm.

Web staff client fixes introduced a bug in using the Clear
Holds Shelf checkin modifier.  Commit 4ccbf980 added calls
to max_chunk_size on the client to use chunked responses for
better feedback during long operations.  Thise works just
fine when a regular OpenSRF AppRequest is used, but leads to
a network error when AppSubrequest is used, as apparently the
xul client does with the Clear Holds Shelf checkin modifier.

This commit adds code to check if the client object can do
the max_chunk_size call when the max_chunk_size call is
made.  This will prevent the network errors in cases where
the client is an AppSubrequest object and will still use
chunked responses when the client is capable of doing it.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm