https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40744
Bug ID: 40744
Summary: Don't give noisy warning when PatronSelfRegistration
is turned off
Change sponsored?: ---
Product: Koha
Version: 24.11
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Command-line Utilities
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
We have several instances on one server. Some are using patron self
registration, others do not. Now when cleanup_database.pl is run, we get a
warning in the logs:
Self-registrations cannot be removed, system preference
PatronSelfRegistrationDefaultCategory is not set
This is unnecessary, as for the libraries in question PatronSelfRegistration is
OFF and PatronSelfRegistrationExpireTemporaryAccountsDelay is set to 0.
The pref description says:
NOTE: This system preference requires the misc/cronjobs/cleanup_database.pl
cronjob. Ask your system administrator to schedule it.
No patrons will be deleted if you set the pref to zero or make it empty.
So we are telling the script, it's OK, we don't want any deleted, and still get
the noisy warning. This is unnecessary.
The warning should only be given when
PatronSelfRegistrationExpireTemporaryAccountsDelay is not empty or 0 and the
PatronSelfRegistrationDefaultCategory is empty at the same time. We might also
want to check for PatronSelfRegistration.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/