[Koha-bugs] [Bug 29474] Automatic renewals cronjob is slow on systems with large numbers of reserves

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 15 11:36:43 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29474

--- Comment #50 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 128556
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=128556&action=edit
Bug 29474: Remove one layer of indendation by adding if check in the begginning

If we simply return "no" immediately from the function when the
checkout is not an autorenewed checkout we can drop one layer of
indendation and the code becomes much easier to read.

To test:
 1) prove t/db_dependent/Circulation.t

Signed-off-by: Nick Clemens <nick at bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list