Bug 42022

Summary: Add custom patron message broken if notice has library limitation
Product: Koha Reporter: Aleisha Amohia <aleisha>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: dcook, gmcharlt, kyle
Version: unspecified   
Hardware: All   
OS: All   
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:

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.