Bug 26132: (follow-up) Fix broken code in TooMany function
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Wed, 4 Nov 2020 15:05:28 +0000 (17:05 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 Nov 2020 16:32:35 +0000 (17:32 +0100)
commit31e9ac9a2c6e54e458a7f5bc49b83a2d05a83d2c
tree3cf337b3f2fcec7b8fdd48f6765f7e8837873850
parentfe7abf020c6c13978ce84393b4877688b6f3ebce
Bug 26132: (follow-up) Fix broken code in TooMany function

The $checkouts variable was not defined in the PatronLibrary case at
all and in the else case the SQL join was totally missing.

To test:
1) Without this patch notice prove
   t/db_dependent/Circulation/TooMany.t fails
2) With this patch notice prove
   t/db_dependent/Circulation/TooMany.t succeeds

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Circulation.pm