Bug 41666 - Account expiration should not be displayed when login counts as activity and membership_expiry is configured to renew card
Summary: Account expiration should not be displayed when login counts as activity and ...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-20 09:17 UTC by Lari Taskula
Modified: 2026-01-20 09:38 UTC (History)
0 users

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
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 Lari Taskula 2026-01-20 09:17:14 UTC
OPAC patron account expiration alerts should not be displayed when membership_expiry.pl cronjob is configured to renew active patrons.

When patron account is about to expire, OPAC displays patron the following message:

"Your library card will expire on <expirationdate>. Please contact the library for more information."

System preference TrackLastPatronActivityTriggers can be set to count a login as activity. When patron logs in, the next time membership_expiry.pl cronjob is executed with the renew option, the patron account will be renewed. In this case, the patron should not be presented with an expiration notice nor should they be instructed to contact the library. Instead, it should say something like this: "Your library card was about to expire on <expirationdate>, but we will now renew your library due to your recent activity of logging in."
Comment 1 Lari Taskula 2026-01-20 09:19:34 UTC
The question is how can we know, in the TT templates, if -renew is used in the membership_expiry.pl cronjob?
Comment 2 Lari Taskula 2026-01-20 09:20:53 UTC
(In reply to Lari Taskula from comment #1)
> The question is how can we know, in the TT templates, if -renew is used in
> the membership_expiry.pl cronjob?
Correction,
-renew -active n
Comment 3 Lari Taskula 2026-01-20 09:38:18 UTC
One option would be to renew the expiring patron account simply as they login.

But this would require another system preference.