From 69aecb6c4e66022e95b2fa29df4fb25c9bd4fa86 Mon Sep 17 00:00:00 2001
From: Katrin Fischer <katrin.fischer.83@web.de>
Date: Mon, 8 Aug 2022 21:18:19 +0000
Subject: [PATCH] Bug 30200: (follow-up) Update database update and pref
 description

* Rephrases the system preference description a bit
* Adds IGNORE to the database statement
* Update output message of database statement to include pref name

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Magnus Enger <magnus@libriotech.no>
---
 .../data/mysql/atomicupdate/Bug_30200-Add_ILLRequestsTabs.pl  | 4 ++--
 .../prog/en/modules/admin/preferences/circulation.pref        | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/installer/data/mysql/atomicupdate/Bug_30200-Add_ILLRequestsTabs.pl b/installer/data/mysql/atomicupdate/Bug_30200-Add_ILLRequestsTabs.pl
index 5c6cb265ba..b1ac49d1a1 100644
--- a/installer/data/mysql/atomicupdate/Bug_30200-Add_ILLRequestsTabs.pl
+++ b/installer/data/mysql/atomicupdate/Bug_30200-Add_ILLRequestsTabs.pl
@@ -2,13 +2,13 @@ use Modern::Perl;
 
 return {
     bug_number => "30200",
-    description => "Add customizable tabs to interlibrary loan requests list",
+    description => "Add ILLRequestsTabs system preference",
     up => sub {
         my ($args) = @_;
         my ($dbh, $out) = @$args{qw(dbh out)};
         # Do you stuffs here
         $dbh->do(q{
-            INSERT INTO `systempreferences`
+            INSERT IGNORE INTO `systempreferences`
                 (variable,value,options,explanation,type)
             VALUES
                 ('ILLRequestsTabs','','','Add customizable tabs to interlibrary loan requests list','Textarea');
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
index 291c6ccec6..e1dca2d2b1 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
@@ -1135,7 +1135,7 @@ Circulation:
                   1: block
                   0: allow
             - renewing of items from the staff interface and via the <code>misc/cronjobs/automatic_renewals.pl</code> cronjob.
-    Fines policy:
+    Fines Policy:
         -
             - pref: finesCalendar
               type: choice
-- 
2.34.1