]> git.koha-community.org Git - koha.git/commit
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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 23 May 2024 13:55:38 +0000 (13:55 +0000)
commita82e0554feef2751156d8b123f878c39a6cd2d41
tree926341f4a88363ca9b5675f6284fbb1edd4abe8e
parent20432371997c27c50dce447d2ecd6a761608da4b
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>
(cherry picked from commit d26306ed328c1be1c59f33515caa699071a4aacc)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Circulation.pm