Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Nick Clemens ef5adaff5a Bug 22650: Prevent multiple holds on individual items
This patch corrects a missing id on the holds_to_place field and adds code to disable the box when an item is checked

Additionally script login now places a single hold if an itemnumebr is passed and checks for holdability of the specific item

To test:
 1 - Allow multiple holds per record in circ rules
 2 - In staff client, go to place a hold on a record
 3 - Select a patron
 4 - Increase the number of holds
 5 - Then select a specific item to hold
 6 - Patron now has multiple holds on a single item
 7 - Apply patch
 8 - Repeat, notice that count is disabled when item checked
 9 - Confirm count is enabled when 'Hold next available item' is checked
10 - Set number to more than 1
11 - Check an item and submit
12 - Confirm only one item is reserved
13 - Hit the script directly (with valid info):
     http://localhost:8081/cgi-bin/koha/reserve/placerequest.pl?biblionumber=1&checkitem=1&holds_to_place_count=2&borrowernumber=5
14 - Confirm only one hold is placed
15 - Confirm multiple hits of the url do not generate further holds

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-04-25 10:24:19 +00:00
..
acqui Bug 21308: Results from order search do not show the search parameters 2019-04-19 14:13:53 +00:00
admin Bug 21783: Reindent admin/columns_settings.tt 2019-04-19 14:38:50 +00:00
authorities
basket
batch
catalogue Bug 22649: Add itemtype to item search results and CSV file 2019-04-19 14:34:08 +00:00
cataloguing Bug 21307: (follow-up) QA fixes 2019-04-19 14:27:57 +00:00
circ Bug 21034: Re-indent circulation.tt 2019-04-24 11:08:54 +00:00
clubs Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
common
course_reserves Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
errors
ill Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
installer
labels Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
mana Bug 22250: Clean up Mana KB integration with serials and reports 2019-04-11 11:34:14 +00:00
members Bug 22751: Switch two-column templates to Bootstrap grid: Patron details 2019-04-24 11:09:37 +00:00
offline_circ
onboarding Bug 22451: Use Asset everywhere 2019-04-16 13:17:32 +00:00
patron_lists
patroncards Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
plugins
reports Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
reserve Bug 22650: Prevent multiple holds on individual items 2019-04-25 10:24:19 +00:00
reviews
rotating_collections
serials Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
services
suggestion
tags Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
test
tools Bug 22175: (follow-up) Identify columns to exclude from export 2019-04-18 10:53:05 +00:00
virtualshelves
about.tt
auth.tt Bug 21890: Allow restricting password resets by patron category 2019-04-12 02:32:03 +00:00
intranet-main.tt