Koha/installer/data/mysql
Nick Clemens 0bfe336c7b 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>
2020-09-18 11:49:29 +02:00
..
atomicupdate Bug 18958: Make hold_fill_targets specific to reserves 2020-09-18 11:49:29 +02:00
de-DE Bug 26007: (QA follow-up) Replace wrong link values from sql installer files 2020-09-09 15:39:51 +02:00
en Bug 26007: (QA follow-up) Fix English yml file 2020-09-11 09:56:56 +02:00
fr-CA Bug 21066: Rename publicationdate with published_on 2020-09-02 15:35:08 +02:00
fr-FR Bug 26007: (QA follow-up) Replace wrong link values from sql installer files 2020-09-09 15:39:51 +02:00
it-IT Bug 26007: (QA follow-up) Replace wrong link values from sql installer files 2020-09-09 15:39:51 +02:00
localization Bug 20168: Remove li tags from OPACSearchForTitleIn for new installs 2020-09-09 14:33:45 +02:00
mandatory Bug 25534: (QA follow-up) Add AV category 2020-08-25 15:07:28 +02:00
nb-NO Bug 26007: (QA follow-up) Replace wrong link values from sql installer files 2020-09-09 15:39:51 +02:00
pl-PL Bug 26007: (QA follow-up) Replace wrong link values from sql installer files 2020-09-09 15:39:51 +02:00
ru-RU Bug 26007: (QA follow-up) Replace wrong link values from sql installer files 2020-09-09 15:39:51 +02:00
uk-UA Bug 26007: (QA follow-up) Replace wrong link values from sql installer files 2020-09-09 15:39:51 +02: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-09-18 11:49:29 +02:00
labels_upgrade.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
patroncards_upgrade.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
sysprefs.sql Bug 20168: Remove li tags from OPACSearchForTitleIn for new installs 2020-09-09 14:33:45 +02:00
update22to30.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
updatedatabase.pl Bug 24807: DBRev 20.06.00.038 2020-09-18 11:49:29 +02:00
userflags.sql Bug 26015: Terminology: Fix tons more staff clients to staff interfaces 2020-08-31 16:10:25 +02:00
userpermissions.sql Bug 24157: New permission - merge_invoices 2020-07-30 17:30:23 +02:00