Bug 40802 - cleanup_database is broken with ChildNeedsGuarantor
Summary: cleanup_database is broken with ChildNeedsGuarantor
Status: ASSIGNED
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Baptiste Wojtkowski (bwoj)
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-12 14:37 UTC by Baptiste Wojtkowski (bwoj)
Modified: 2025-09-12 14:47 UTC (History)
1 user (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Baptiste Wojtkowski (bwoj) 2025-09-12 14:37:58 UTC
Steps to reproduce :
1 - Have a child expired patron expired for more than the content of LockExpiredDelay syspref
2 - Set syspref to "childneedsguarantor"
3 - Run /home/koha/src/misc/cronjobs/cleanup_database.pl 
You will get an uncaught error
Comment 1 Baptiste Wojtkowski (bwoj) 2025-09-12 14:46:55 UTC
Note: the error is :

> $ ~/src/misc/cronjobs/cleanup_database.pl --confirm
> [Child patron needs a guarantor]