Koha-clms/Koha/REST/V1
Nick Clemens 91da4b4b38
Bug 39408: Don't attempt to send a message if one is not generated
The routine to create the message can return nothing if there is no content,
we should handle this case and not attempt to send.

To test:
1 - Test plan from last patch
2 - Apply this patch
3 - POST to patron API again
4 - Success!

Signed-off-by: Claire Hernandez <claire.hernandez@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit c1fa513be9)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2025-10-29 10:02:25 +01:00
..
Acquisitions Bug 40868: Restore full list of permissions to the vendors app 2025-10-23 23:06:43 +02:00
Auth Bug 36536: Make REST APIs validateUserAndPassword update borrowers.lastseen 2025-09-20 10:43:14 +02:00
Biblios Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
CashRegisters Bug 39091: Add cash registers list REST API endpoint 2025-08-22 09:47:56 +02:00
Clubs Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Config/SMTP Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ERM Bug 37622: Error in erm module when editing an agreement, a license, a package or a titles 2025-10-23 23:06:37 +02:00
ILL Bug 39600: Rewrite API controllers 2025-04-25 19:23:41 +02:00
OAuth Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Patrons Bug 37622: Fix add_debit 2025-10-23 23:06:37 +02:00
Preservation Bug 37622: Remove location from 2 preservation 'update' routes 2025-10-23 23:06:38 +02:00
StockRotation Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
AdditionalContents.pm Bug 39900: REST API specs and class changes 2025-09-20 10:42:42 +02:00
AdvancedEditorMacro.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ArticleRequests.pm Bug 28907: REST - Remove allow-owner from public article requests cancel route 2025-03-06 13:54:33 +01:00
Auth.pm Bug 40275: Use Koha::Patrons->find_by_identifier in the codebase 2025-09-20 10:43:37 +02:00
AuthorisedValueCategories.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
AuthorisedValues.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Authorities.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
BackgroundJobs.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Biblios.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Bookings.pm Bug 38175: (QA follow-up) DRY out PATCH handling 2024-10-24 18:27:24 +02:00
Checkouts.pm Bug 9762: (Alternative) Log circulation overrides 2025-09-20 10:43:25 +02:00
CirculationRules.pm Bug 40419: Fix wrong license 2025-07-24 10:23:34 +02:00
Cities.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
DeletedBiblios.pm Bug 37791: Fix 'Biblio not found' messages on the API 2024-10-11 12:21:29 +02:00
ERM.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ExtendedAttributeTypes.pm Bug 37577: Add additional fields for ERM packages 2024-11-08 16:09:19 +01:00
Holds.pm Bug 40866: Implement Alternative pattern for holds override logging (Part 4) 2025-10-29 10:02:18 +01:00
ImportBatchProfiles.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ImportRecordMatches.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ItemTypes.pm Bug 34008: (QA follow-up) 'item_type_id' should be used 2023-11-01 17:23:15 -03:00
Items.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Libraries.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Lists.pm Bug 28965: (QA follow-up) Fix misc qa issues 2024-11-08 16:09:22 +01:00
OAuth.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Patrons.pm Bug 39408: Don't attempt to send a message if one is not generated 2025-10-29 10:02:25 +01:00
Preservation.pm Bug 30708: Tidy perl files 2023-10-18 15:42:04 -03:00
Quotes.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
RecordSources.pm Bug 37513: Handle Koha::Exceptions::Object::FKConstraintDeletio in controller 2024-08-27 12:14:24 +02:00
ReturnClaims.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
SearchFilter.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Static.pm Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
Suggestions.pm Bug 40419: Fix wrong license 2025-07-24 10:23:34 +02:00
Tickets.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
TransferLimits.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
TwoFactorAuth.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00