From 577a111b4bb01a8fcfd9ad299e8d9f47d9cf190f Mon Sep 17 00:00:00 2001
From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Date: Mon, 13 Mar 2023 16:01:30 -0400
Subject: [PATCH] Bug 29046: Change link in EmailFieldPrecedence and add link
 in EmailFieldPrimary

This patch modifies the link in EmailFieldPrecedence to reflect the new
name of EmailFieldPrimary. It also adds a note in the latter to set the
'first valid' order in the former.

To test:
1. Go to Administration > Global system preferences
2. Search for EmailFieldPrecedence
3. Click on the link in the description
   --> It should lead to EmailFieldPrimary
4. Read the note in EmailFieldPrimary, make sure the grammar and
   spelling are correct.
5. Click the link to EmailFieldPrecedence
   --> It should lead to EmailFieldPrecedence
---
 .../prog/en/modules/admin/preferences/patrons.pref             | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref
index 8a3d3040a0..fa44e1fa68 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref
@@ -183,12 +183,13 @@ Patrons:
                cardnumber: cardnumber as
                "OFF": first valid
          - "patron email address for sending out emails."
+         - '<br><strong>NOTE:</strong> If set to "first valid", the order in which the email addresses are checked is set in <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=EmailFieldPrecedence">EmailFieldPrecedence</a>.'
      -
          - Use the following patron email fields in order of highest precedence first
          - pref: EmailFieldPrecedence
            class: multi
          - when selecting which email address to use to send patron notices.
-         - '<br><strong>NOTE:</strong> This preference only takes effect if <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=AutoEmailPrimaryAddress">AutoEmailPrimaryAddress</a> is set to <strong>first valid<strong>'
+         - '<br><strong>NOTE:</strong> This preference only takes effect if <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=EmailFieldPrimary">EmailFieldPrimary</a> is set to <strong>first valid<strong>.'
      -
          - pref: TalkingTechItivaPhoneNotification
            choices:
-- 
2.34.1