Bug 33791: Pass itemnumber to $hold->fill
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 22 May 2023 11:14:25 +0000 (11:14 +0000)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Thu, 8 Jun 2023 17:09:06 +0000 (17:09 +0000)
commite1b927bee7a7ba68fd65fd5a2c3dc0e6870f6153
treee1b51e2ace7a9b2891ee1d5a72ff5ea90fc46eea
parentfba7d4e5f7c2c2743df62b908d20ca6d7e139542
Bug 33791: Pass itemnumber to $hold->fill

Test plan:

Without this patch:
Place next available level on some book for patron A.
Checkout this book directly to patron A.
Check old_reserves table for this reserve; does not have itemnumber.

With this patch:
Do the same.
In old_reserves the itemnumber should be saved.
Run again t/db_dependent/Koha/Hold.t. Should pass.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit bd5c5eaa38f75297efde5a096d30ad65eff9a658)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
C4/Reserves.pm
Koha/Hold.pm