Koha-clms/installer/data/mysql
Nick Clemens a120656eca Bug 18958: Make hold_fill_targets specific to reserves
After looking at Marcel's comments, the problem is in our matching
to hold_fill_targets - rather than adjusting to find filled/waiting holds we
could ensure that hold_fill_targets only refers to the specific hold it
is intended to

This patch is clearer, if slightly less performant than last (we now return all
the reserves and have to find the 'highest')

Test Plan:
 1 - Create and use a patron that can place multiple record level holds per record
 2 - Create a record with X items, each at a different library
 3 - Place X 'Next available' holds on the record for the patron using the 'Holds to place' box
 4 - perl misc/cronjobs/holds/build_holdsqueue.pl
 5 - Check in LibraryA's copy as LibraryA and confirm the hold
 6 - Revisit request.pl for the record, notice the next hold in line is now item-specific
 7 - Checkout the item to the patron, notice the remaining hold is marked waiting
 8 - Attempt to place another hold for your patron, notice that it requires an item-specific hold
 8 - Apply this patch
 9 - Repeat steps 1-5
10 - Revisit request.pl for the record, notice the next hold in line has *not* become item-specific
11 - Checkout the item to the patron, ensure the first hold is filled and the second remains record level
12 - Repeat whole test plan without building holds queue to confirm holds are still treated correctly

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 0bfe336c7b)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2020-10-16 16:45:33 +00:00
..
atomicupdate Bug 18958: Make hold_fill_targets specific to reserves 2020-10-16 16:45:33 +00:00
de-DE Bug 25129: Update German (de-DE) web installer sample files for 20.05 2020-09-14 22:48:25 +00:00
en Bug 25629: Fix capitalization in sample notices 2020-07-28 14:59:34 +00:00
fr-CA Bug 25629: Fix capitalization in sample notices 2020-07-28 14:59:34 +00:00
fr-FR Bug 26007: (QA follow-up) Replace wrong link values from sql installer files 2020-09-14 22:27:32 +00:00
it-IT Bug 26007: (QA follow-up) Replace wrong link values from sql installer files 2020-09-14 22:27:32 +00:00
mandatory Bug 17355: DB changes - set is_system for categories 2020-05-04 07:57:21 +01:00
nb-NO Bug 26007: (QA follow-up) Replace wrong link values from sql installer files 2020-09-14 22:27:32 +00:00
pl-PL Bug 26007: (QA follow-up) Replace wrong link values from sql installer files 2020-09-14 22:27:32 +00:00
ru-RU Bug 26007: (QA follow-up) Replace wrong link values from sql installer files 2020-09-14 22:27:32 +00:00
uk-UA Bug 26007: (QA follow-up) Replace wrong link values from sql installer files 2020-09-14 22:27:32 +00:00
account_credit_types.sql Bug 24081: Add credit_types, offset_types and permissions 2020-03-04 14:46:13 +00:00
account_debit_types.sql Bug 25010: Fix typo 'rewewal' in debit types 2020-04-03 14:26:35 +01:00
account_offset_types.sql Bug 24081: (QA follow-up) Fix small typo 2020-03-04 14:46:25 +00:00
audio_alerts.sql
…
backfill_statistics.pl
…
fix_unclosed_nonaccruing_fines_bug17135.pl Bug 24840: Replace DateTime->now with dt_from_string 2020-04-08 11:54:23 +01:00
kohastructure.sql Bug 18958: Make hold_fill_targets specific to reserves 2020-10-16 16:45:33 +00:00
labels_upgrade.pl Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
patroncards_upgrade.pl Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
sysprefs.sql Bug 25958: Allow LongOverdue cron to exclude specified lost values 2020-09-04 19:53:36 +00:00
update22to30.pl Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
updatedatabase.pl Bug 26341: Database update for bug 21443 is not idempotent and will destroy settings 2020-10-16 16:00:09 +00:00
userflags.sql Bug 4461: Adding user flags for managing OPAC problem reports 2020-04-06 11:18:13 +01:00
userpermissions.sql Bug 17268: Add macros table and permissions 2020-05-04 08:25:07 +01:00