]> git.koha-community.org Git - koha.git/commit
Bug 30648: Record deleted_biblionumber in holds
authorNick Clemens <nick@bywatersolutions.com>
Fri, 11 Oct 2024 12:28:48 +0000 (12:28 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 29 Oct 2024 07:46:43 +0000 (08:46 +0100)
commit7cf1280beec7c9e20e10ed972123790986864420
treec9204f5b76c87a8545e3dfdbc93a806d2b6b1a7c
parente289a8711147b82391ad24598f82080f0ce621b2
Bug 30648: Record deleted_biblionumber in holds

This patch ensures the deleted biblionumber is recorded in current and previous holds
before the record is deleted

To test:
1 - Place and fill a few holds on a biblio, completing checkout to patron
2 - Place a few holds on the biblio and do not fulfill them
3 - Delete the items from the biblio via the DB (otherwise you cannot delete last item when there are holds)
    DELETE FROM items WHERE biblionumber={biblionumber}
4 - Delete the biblio
5 - Check the DB and confirm the deleted_biblionumber column has been filled
    SELECT reserve_id,deleted_biblionumber,biblionumber FROM old_reserves WHERE deleted_biblionumber = {biblionumber};
6 - Sign off!

Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
C4/Biblio.pm
Koha/Biblio.pm