Koha-clms/installer/data/mysql
Nick Clemens f679369773 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>
(cherry picked from commit a120656eca)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
2020-10-20 14:32:05 +13:00
..
atomicupdate Bug 18958: Make hold_fill_targets specific to reserves 2020-10-20 14:32:05 +13:00
de-DE Bug 25448: Update German (de-DE) framework files 2020-09-15 23:27:33 +12:00
en Bug 24339: Add SIP2 payment types for installation 2020-05-08 21:46:47 +00:00
es-ES Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-07 23:01:59 +00:00
fr-CA Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-07 23:01:59 +00:00
fr-FR Bug 24856: Remove itemtypes.imageurl in fr-FR sample data 2020-04-03 20:52:06 +00:00
it-IT Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-07 23:01:59 +00:00
mandatory Bug 14697: (QA follow-up) Add missing AV category 2019-10-31 12:05:21 +00:00
nb-NO Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-07 23:01:59 +00:00
pl-PL Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-07 23:01:59 +00:00
ru-RU Bug 24274: Remove field 01e from sql installer files 2020-01-12 18:59:20 +00:00
uk-UA Bug 24274: Remove field 01e from sql installer files 2020-01-12 18:59:20 +00:00
account_credit_types.sql Bug 23805: (RM follow-up) Correction to sql installer file 2019-10-25 09:37:25 +01:00
account_debit_types.sql Bug 25010: Fix typo 'rewewal' in debit types 2020-04-29 19:55:16 +00:00
account_offset_types.sql Bug 22521: (QA follow-up) Corrections to tests 2019-04-17 16:49:36 +00:00
audio_alerts.sql
…
backfill_statistics.pl Bug 13795: Remove occurences of unused columns in code 2019-04-18 10:05:51 +00:00
fix_unclosed_nonaccruing_fines_bug17135.pl Bug 24840: [19.11.x] Replace DateTime->now with dt_from_string 2020-05-07 17:17:12 +00:00
kohastructure.sql Bug 18958: Make hold_fill_targets specific to reserves 2020-10-20 14:32:05 +13:00
labels_upgrade.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
patroncards_upgrade.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
sysprefs.sql Bug 25958: Allow LongOverdue cron to exclude specified lost values 2020-09-09 21:47:33 +12:00
update22to30.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
updatedatabase.pl Increment version for 19.11.10 release 2020-09-22 10:54:45 +12:00
userflags.sql Bug 22868: Move suggestions_manage subperm out of acquisition perm 2020-02-10 23:08:59 +00:00
userpermissions.sql Bug 24846: Add new permission batch_extend_due_dates 2020-03-23 23:33:36 +00:00