Bug 22653: Remove unimplemented RotationPreventTransfers system preference
authorKatrin Fischer <katrin.fischer.83@web.de>
Mon, 17 Jun 2019 21:12:25 +0000 (21:12 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 19 Jun 2019 12:05:51 +0000 (13:05 +0100)
This removes the RotationPreventTransfers system preference
from updated and new installations.

To test:
- Verify you have the RotationPreventTransfers pref
- Apply patch and run database update
- Verify the preference no longer exists in your system
  - in the sys pref editor
  - in your database:

SELECT * from systempreferences WHERE variable = "RotationPreventTransfers";

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

installer/data/mysql/atomicupdate/bug_22653_remove_RotationPreventTransfers.perl [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref

diff --git a/installer/data/mysql/atomicupdate/bug_22653_remove_RotationPreventTransfers.perl b/installer/data/mysql/atomicupdate/bug_22653_remove_RotationPreventTransfers.perl
new file mode 100644 (file)
index 0000000..93facac
--- /dev/null
@@ -0,0 +1,6 @@
+$DBversion = 'XXX';
+if( CheckVersion( $DBversion ) ) {
+    $dbh->do( "DELETE FROM systempreferences WHERE variable = 'RotationPreventTransfers'" );
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 22653 - Remove unimplemented RotationPreventTransfers system preference)\n";
+}
index 033c70e..a0d1132 100644 (file)
@@ -521,7 +521,6 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
 ('reviewson','1','','If ON, enables patron reviews of bibliographic records in the OPAC','YesNo'),
 ('RisExportAdditionalFields',  '', NULL ,  'Define additional RIS tags to export from MARC records in YAML format as an associative array with either a marc tag/subfield combination as the value, or a list of tag/subfield combinations.',  'textarea'),
 ('RoutingListAddReserves','0','','If ON the patrons on routing lists are automatically added to holds on the issue.','YesNo'),
-('RotationPreventTransfers','0',NULL,'If ON, prevent any transfers for items on stock rotation rotas, except for stock rotation transfers','YesNo'),
 ('RoutingListNote','To change this note edit <a href=\"/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=RoutingListNote#jumped\">RoutingListNote</a> system preference.','70|10','Define a note to be shown on all routing lists','Textarea'),
 ('RoutingSerials','1',NULL,'If ON, serials routing is enabled','YesNo'),
 ('SCOMainUserBlock','','70|10','Add a block of HTML that will display on the self checkout screen','Textarea'),
index b526e5f..4799e86 100644 (file)
@@ -1024,12 +1024,6 @@ Circulation:
                   yes: Enable
                   no: Disable
             - "the stock rotation module"
-        -
-            - pref: RotationPreventTransfers
-              choices:
-                  yes: Disallow
-                  no: Allow
-            - "library transfers on items in stockrotation rotas"
     Article Requests:
         -
             - pref: ArticleRequests