Bug 35293: Re-implement bug 30407 functionality
authorAlex Buckley <alexbuckley@catalyst.net.nz>
Sun, 12 Nov 2023 21:26:42 +0000 (21:26 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 15 Jan 2024 13:39:11 +0000 (14:39 +0100)
commit85e91c80c2b838e48c380c4facc9d149f44528c6
tree325a75eb6dd624783c1581d576b7aa34ffb39ec1
parent1abc43b896a7f9b6a00eb39c98e2288e2ef0b2e4
Bug 35293: Re-implement bug 30407 functionality

To test:
1. Set a book items notforloan status as -1 and set the AllowNotForLoanOverride system preference to 'Allow'
2. Add the following lines to UpdateNotForLoanStatusOnCheckin (the
formatting and indentation is important to keep):

BK:
 -1: ONLYMESSAGE

3. Check a book item out for patron.
4. Check book item in.
=> Description of notforloan status should be displayed under 'Check in message'.
=> Confirm notforloan status HAS changed.

5. Apply patch and update database if needed
6. Set book items notforloan status as -1 (or create new one)
7. Check book item out for patron.
8. Check book item in.
=> Description of notforloan status should be displayed under 'Check in
message'.
=> Confirm notforloan status HAS NOT changed.

Also prove t/db_dependent/Circulation/issue.t

Sponsored-by: Catalyst IT, New Zealand
Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit a0f83767a81a1593f21f152d63fb493c14b8c85f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Circulation.pm