Bug 36313: Fix Undefined subroutine &C4::Circulation::CheckReserves error
authorEmmi Takkinen <emmi.takkinen@koha-suomi.fi>
Thu, 11 Apr 2024 10:12:58 +0000 (13:12 +0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 22 May 2024 12:30:10 +0000 (14:30 +0200)
commitd26306ed328c1be1c59f33515caa699071a4aacc
treee67da4d08d1147c0b661418c9544d5aa2500dc5e
parent34e17b5abad1bac29bc13155cedbe11b7d7fc1ba
Bug 36313: Fix Undefined subroutine &C4::Circulation::CheckReserves error

On (at least) git installations of Koha checkouts and checkins fail on
error 500. Logs have following error:

Undefined subroutine &C4::Circulation::CheckReserves called...

Error happens also when one tries to open patrons checkouts from detail page.
Koha doesn't die but table just keeps loading. Solution is to add C4::Reserves
before CheckReserves when it's called from Circulation.pm.

To test:
1. Apply this patch.
2. Try to check out and check in item.
=> Confirm both operations are succesfull.
3. Attempt to open patrons checkouts from patron detail and checkout page.
=> Table should load

Also prove t/db_dependent/Circulation.t.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: BabaJaga <babajagawgoglach@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 80beaf875b3645034f5dda37bfadf51a038859cc)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Circulation.pm