Bug 40933

Summary: Add SMS support under Add message feature
Product: Koha Reporter: Lari Taskula <lari.taskula>
Component: Staff interfaceAssignee: Lari Taskula <lari.taskula>
Status: Failed QA --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: andrew, carthur, gmcharlt
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32403
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 40933: Add the ability to send custom SMS messages to a patron
Bug 40933: Add the ability to send custom SMS messages to a patron

Description Lari Taskula 2025-10-01 20:02:12 UTC
Staff interface -> Patron details -> Add Message

Current options are:

Staff - Internal note
OPAC
Email - email addresses of patron

Add:

SMS - sms number of patron
Comment 1 Lari Taskula 2025-10-01 20:36:36 UTC
Created attachment 187226 [details] [review]
Bug 40933: Add the ability to send custom SMS messages to a patron

To test:
1. Make sure SMSSendDriver system preference is enabled
2. In staff client, navigate to patron details of any patron
3. From the members menu toolbar, click "Add Message"
4. Under "Add a message for", select "SMS - sms number of patron"
5. Write a custom message
6. Click "Save"
7. Navigate to patron's Notices tab
8. Observe a new notice titled "SMS added by a librarian"
9. Click it
10. Observe the content you wrote in step 5
Comment 2 Laura Escamilla 2025-10-30 13:12:56 UTC
Created attachment 188643 [details] [review]
Bug 40933: Add the ability to send custom SMS messages to a patron

To test:
1. Make sure SMSSendDriver system preference is enabled
2. In staff client, navigate to patron details of any patron
3. From the members menu toolbar, click "Add Message"
4. Under "Add a message for", select "SMS - sms number of patron"
5. Write a custom message
6. Click "Save"
7. Navigate to patron's Notices tab
8. Observe a new notice titled "SMS added by a librarian"
9. Click it
10. Observe the content you wrote in step 5

Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Comment 3 Andrew Fuerste-Henry 2026-01-06 17:05:26 UTC
This is no longer adding "SMS added by a librarian" as the subject of the message. The lack of subject means there is no link to see the notice content in the patron's Notices tab.
Comment 4 Andrew Fuerste-Henry 2026-01-06 21:06:19 UTC
Looking back at this, I've noticed that this code does not allow an SMS to be generating using an existing notice. When sending an email via Add Message, one can either type in email text directly or select a pre-defined letter_code. It would be ideal for SMS messages to match this functionality.