Bug 42022 - Add custom patron message broken if notice has library limitation
Summary: Add custom patron message broken if notice has library limitation
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-08 22:38 UTC by Aleisha Amohia
Modified: 2026-03-08 22:43 UTC (History)
3 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Crowdfunding committed: 0
Crowdfunding contact:
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 Aleisha Amohia 2026-03-08 22:38:41 UTC
To reproduce:

1. Go to Tools -> Notices and slips
2. Create a new notice, choose 'Patrons (custom message)' from the modules dropdown
3. Change the Library to Centerville and fill in an email notice, then hit Save
4. Go to your patron account and ensure you have a primary email address saved for the patron
5. Go to the Notices tab
6. Click the Add message button in the navbar
7. Change 'Add a message for:' to Email
8. Change 'Patron notice:' to your new custom message template and Save
9. The page should refresh and you'll see that the notice was NOT generated --> BUG

The plack-intranet-error.log will also complain that it couldn't find the notice for that transport type, but this is due to the library limitation. If you create another custom message for All libraries, this can be generated and sent as normal.