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

--- Comment #5 from Pedro Amorim <[email protected]> ---
Created attachment 198741
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198741&action=edit
Bug 42255: Holds allowed (total)

Make 'Holds allowed (total)' (aka reservesallowed) consider each hold group as
an individual hold

Test plan:
1) Enable DisplayAddHoldGroups sys pref
2) Set Holds allowed (total) to 2, visit:
http://localhost:8081/cgi-bin/koha/admin/smart-rules.pl
3) Scroll to the right, click the 'Edit' button under 'Actions' column.
4) On the 'Holds allowed (total)' column cell, enter '2' and click 'Save' under
the 'Actions' column to the right.
5) Search  for 'test':
http://localhost:8081/cgi-bin/koha/catalogue/search.pl?q=test
6) Tick the checkbox next the first and second results, click 'Place hold'
button at the top toolbar
7) Search for 'koha' user and pick Koha (42)
8) Set a pickup location for each hold and tick the 'Treat as hold group'
checkbox. Click 'Place holds'.
9) Try to place another single hold for the same patron. Should succeed,
because the 2 grouped holds count as 1. Patron now should have 1 group + 1
ungrouped hold = effective count of 2.
10) Try to place yet another hold, should be blocked with a tooManyHolds error.
11) Prior to this patch, step 9 would've failed because the 2 grouped holds
counted as 2.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to