From 07b8ce7ac237af0e3284180d4d62b5ec0143328a Mon Sep 17 00:00:00 2001
From: Nick Clemens <nick@bywatersolutions.com>
Date: Tue, 13 Oct 2020 15:42:39 +0000
Subject: [PATCH] Bug 29591: Add autorenew_checkouts column to preferences json
Content-Type: text/plain; charset=utf-8

Bug 24476 added autorenew_checkouts as a borrower column, intending it to be able to be
hidden if a library was not using the feature.

When the column chooser was added, this column was not included.

To test:
1 - Search system preferences for "BorrowerUnwantedFields"
2 - Click the box to change the value
3 - "autorenew_checkouts" is not an option
4 - Confirm that you see the option to opt patron out of autorenewal when editing patron on staff side
5 - Apply patch and restart everythign
6 - Search for the syspref again
7 - Note that now you can select "autorenew_checkouts"
8 - Check the box and save
9 - Confirm the opt out option is no longer visible during patron editing

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
---
 .../prog/en/modules/admin/preferences/borrowers.json             | 1 +
 1 file changed, 1 insertion(+)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/borrowers.json b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/borrowers.json
index 23140978f0..a15bcaacf9 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/borrowers.json
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/borrowers.json
@@ -52,6 +52,7 @@
     "altcontactcountry": "altcontactcountry",
     "altcontactphone": "altcontactphone",
     "smsalertnumber": "smsalertnumber",
+    "autorenew_checkouts": "autorenew_checkouts",
     "primary_contact_method": "primary_contact_method",
     "sort1": "sort1",
     "sort2": "sort2"
-- 
2.20.1