Bug 41316 - Using patron-homelibrary option for overdue notices does not change which rules are used
Summary: Using patron-homelibrary option for overdue notices does not change which rul...
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Nick Clemens (kidclamp)
QA Contact: Testopia
URL:
Keywords:
Depends on: 41315
Blocks:
  Show dependency treegraph
 
Reported: 2025-11-26 16:23 UTC by Nick Clemens (kidclamp)
Modified: 2025-11-26 16:44 UTC (History)
1 user (show)

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
Bug 41316: Use patrons homelibrary for selecting overdues that should be sent (2.16 KB, patch)
2025-11-26 16:44 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2025-11-26 16:23:43 UTC
Bug 32740 added an option to send overdue notices from the patrons home library, saying:
When it's selected notification messages for overdues will be bundled and sent from the borrowing user's home library

However, the other two options 'item homelibrary' and 'checkout library' also change which set of triggers are used.

Currently the patron option will continue to use the triggers of the checkout library

This is confusing
Comment 1 Nick Clemens (kidclamp) 2025-11-26 16:44:46 UTC
Created attachment 189969 [details] [review]
Bug 41316: Use patrons homelibrary for selecting overdues that should be sent

Currently the patron homelibrary option for OverdueNoticeFrom will select overdues for a branches triggers
based on the issuing branch

The other two options select the trigger/overdues based on the selection

This patch alters the selection of overdues to match only for the patrons branch

To test:
1 - Apply 41315 and follow the plan there
2 - Apply this bug and run the overdues script, assuming CPL is branch A:
    perl misc/cronjobs/overdue_notices.pl --triggered --library CPL --test --nomail -v -v
3 - No overdues should be triggered
4 - Run the script for one of the patrons home libraries, in my case MPL
    perl misc/cronjobs/overdue_notices.pl --triggered --library MPL --test --nomail -v -v
5 - Note only overdues for patrons from that branch are triggered