]> git.koha-community.org Git - koha.git/commit
Bug 27032: Move auto renewal code out of CanBookBeRenewed
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Mon, 16 Nov 2020 13:49:07 +0000 (15:49 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 6 Oct 2021 09:44:22 +0000 (11:44 +0200)
commitc862fd13823633266ac3206bbce4d44cd65715bd
treedca456c5ac277122deb425ca859674a29330f7cc
parentb246015cad44fb2b1cec9ac7dbd3345f19312612
Bug 27032: Move auto renewal code out of CanBookBeRenewed

This moves the checks related to whether auto renewal can be done on
the checkout to its own function _CanBookBeAutoRenewed(). This makes
it more clear which parts of the code are related to auto renewal
checking and which are not.

To test:
  1) Make sure prove t/db_dependent/Circulation.t still passes

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Rebased-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Circulation.pm