[Koha-bugs] [Bug 7703] Don't block bulk hold action on search results if some items can't be placed on hold

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 7 20:23:09 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7703

--- Comment #26 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 52166
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=52166&action=edit
Bug 7703 - Don't block bulk hold action if some items can't be placed on hold

If you select multiple titles on the search results page in order to
place a bulk hold and some of those titles have no items you get a
JavaScript alert warning you can some cannot be placed on hold. You are
blocked from completing the action until you deselect the invalid hold.

This is unnecessary because the bulk hold process will safely refuse to
place a hold on these titles later in the process.

This patch removes the check that prevents submitting a multi-hold if
one or more records in the multi-hold have no items.

Test plan:
1) Apply patch
2) On the staff interface, do a search
3) On the search results, select at least one record with items and one
record with no items.
4) Click the 'Place hold' button.
5) You should be redirected to reserve/request.pl with the message
"Cannot place hold: this record has no items attached."

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

Added a description of the problem and copied the test plan from the bug
report, fulfilling commit message guidelines.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list