From 0fee95b21691b426007fc307df957cd8168478c0 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 13 Oct 2017 13:29:53 +0000 Subject: [PATCH] Bug 19186: (QA follow-up) Insert syspref SelfCheckoutByLogin if missing Signed-off-by: Julian Maurice --- installer/data/mysql/atomicupdate/bug_19186.perl | 10 ++++++++++ installer/data/mysql/sysprefs.sql | 1 + 2 files changed, 11 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_19186.perl diff --git a/installer/data/mysql/atomicupdate/bug_19186.perl b/installer/data/mysql/atomicupdate/bug_19186.perl new file mode 100644 index 0000000000..06ed2097a1 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_19186.perl @@ -0,0 +1,10 @@ +$DBversion = 'XXX'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES + ('SelfCheckoutByLogin','0',NULL,'Have patrons login into the web-based self checkout system with their username/password or their cardnumber','YesNo') + }); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 19186 - Insert system preference SelfCheckoutByLogin if missing)\n"; +} diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index fc4e560e54..47288874f6 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -472,6 +472,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('SearchMyLibraryFirst','0',NULL,'If ON, OPAC searches return results limited by the user\'s library by default if they are logged in','YesNo'), ('SearchWithISBNVariations','0',NULL,'If enabled, search on all variations of the ISBN','YesNo'), ('SelfCheckHelpMessage','','70|10','Enter HTML to include under the basic Web-based Self Checkout instructions on the Help page','Textarea'), +('SelfCheckoutByLogin','1',NULL,'Have patrons login into the web-based self checkout system with their username/password or their cardnumber','YesNo'), ('SelfCheckReceiptPrompt','1','NULL','If ON, print receipt dialog pops up when self checkout is finished','YesNo'), ('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'), ('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'), -- 2.11.0