From 14bbe8f696a0c9d3775f7c3c4a3ed375df7a50f3 Mon Sep 17 00:00:00 2001
From: Owen Leonard <oleonard@myacpl.org>
Date: Thu, 26 Sep 2024 19:36:25 +0000
Subject: [PATCH] Bug 27123: (follow-up) Add note to warn about removing all
 messages

This patch adds a note to the batch patron modification form in order to
warn the user about removing multiple messages at once.

To test:

- Apply the patch and go to Tools -> Batch patron modification
- Enter or select multiple patrons and submit them for modification
- On the page previewing the list patrons for modification, scroll down
  to the form.
- Find the field for "Message" and confirm that there is a note next to
  the checkbox.
---
 koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt
index 68b6ef6adee..3d9a9bd9770 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt
@@ -410,6 +410,9 @@
                                                 <span class="required">Required fields cannot be cleared</span>
                                             [% ELSE %]
                                                 <input type="checkbox" title="Check to delete this field" name="disable_input" value="[% field.name | html %]" />
+                                                [% IF ( field.type == 'message_type' ) %]
+                                                    <span class="hint">NOTE: Checking this box will remove ALL messages</span>
+                                                [% END %]
                                             [% END %]
                                         </li>
                                         [% END %]
-- 
2.39.5