From 11d3b94572a97a222055fc5bab1274304cf9794c Mon Sep 17 00:00:00 2001
From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com>
Date: Wed, 30 Jan 2019 11:05:17 +0000
Subject: [PATCH] Bug 7088: (follow-up) Set syspref default to off

As per item 2 here:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7088#c24

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
---
 .../data/mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql | 2 +-
 installer/data/mysql/sysprefs.sql                                       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/installer/data/mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql b/installer/data/mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql
index e625b0cfb0..5b61589b71 100644
--- a/installer/data/mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql
+++ b/installer/data/mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql
@@ -1,2 +1,2 @@
 INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES
-('AllowRenewalOnHoldOverride','1','','If on, allow items on hold to be renewed with a specified due date','YesNo');
+('AllowRenewalOnHoldOverride','0','','If on, allow items on hold to be renewed with a specified due date','YesNo');
diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql
index 65409654ef..a19abaef01 100644
--- a/installer/data/mysql/sysprefs.sql
+++ b/installer/data/mysql/sysprefs.sql
@@ -38,7 +38,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
 ('AllowPurchaseSuggestionBranchChoice','0','1','Allow user to choose branch when making a purchase suggestion','YesNo'),
 ('AllowRenewalIfOtherItemsAvailable','0',NULL,'If enabled, allow a patron to renew an item with unfilled holds if other available items can fill that hold.','YesNo'),
 ('AllowRenewalLimitOverride','0',NULL,'if ON, allows renewal limits to be overridden on the circulation screen','YesNo'),
-('AllowRenewalOnHoldOverride','1',NULL,'If ON, allow items on hold to be renewed with a specified due date','YesNo'),
+('AllowRenewalOnHoldOverride','0',NULL,'If ON, allow items on hold to be renewed with a specified due date','YesNo'),
 ('AllowReturnToBranch','anywhere','anywhere|homebranch|holdingbranch|homeorholdingbranch','Where an item may be returned','Choice'),
 ('AllowSelfCheckReturns','0','','If enabled, patrons may return items through the Web-based Self Checkout','YesNo'),
 ('AllowStaffToSetCheckoutsVisibilityForGuarantor','0',NULL,'If enabled, library staff can set a patron''s checkouts to be visible to linked patrons from the opac.',  'YesNo'),
-- 
2.11.0