Bug 21699: Allow circulation messages to be editable
authorKyle Hall <kyle@bywatersolutions.com>
Tue, 8 Nov 2022 20:10:07 +0000 (15:10 -0500)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 5 May 2023 13:18:55 +0000 (10:18 -0300)
commit1a99af35f68c7624193069579d3944b4863216f3
tree2b972bfa0d9a00efcb299f41c9a156f5e5edfa58
parente38df2d6f7fd363193badff2380ebee63a702193
Bug 21699: Allow circulation messages to be editable

During a Webinar discussion regarding the new placement of the circulation messages appearing in the Patron Detail page.  It was commented by a librarian that it would be nice to have the circulation messages editable. At times libraries need to keep a specific message on a patrons account with the details such as what branch it was written from and the staff member that wrote it, but it would be nice to be able to edit this message.

Test Plan:
1) Apply this patch
2) Restart all the things!
3) Browser to a patron record
4) Create a new patron message
5) Note the patron message now has an "edit" button
6) Edit the existing message using the edit button and form
7) Check the action logs for that message, note there is a modification
   logged to that message if BorrowersLog is enabled

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Patron/Message.pm
circ/add_message.pl
koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc
koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt