From 5eb4b06f5b892552944d9b9ca7852a332d4b3c3e Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Sun, 25 Sep 2016 15:53:57 +0000 Subject: [PATCH] Bug 16273 - DBRev 16.06.00.031 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_bulac3.sql | 1 - installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_bulac3.sql diff --git a/Koha.pm b/Koha.pm index 74ce7cd898..ed872ef1f8 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "16.06.00.030"; +$VERSION = "16.06.00.031"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_bulac3.sql b/installer/data/mysql/atomicupdate/bug_bulac3.sql deleted file mode 100644 index b71efaa19f..0000000000 --- a/installer/data/mysql/atomicupdate/bug_bulac3.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('PatronSelfRegistrationPrefillForm', '1', 'Display password and prefill login form after a patron has self registered', NULL, 'YesNo'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index fe81f77d6f..153690406e 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -13074,6 +13074,16 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "16.06.00.031"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('PatronSelfRegistrationPrefillForm', '1', 'Display password and prefill login form after a patron has self registered', NULL, 'YesNo'); + }); + + print "Upgrade to $DBversion done (Bug 16273 - Prevent selfregistration from printing the borrower password and filling the logging form)\n"; + SetVersion($DBversion); +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 -- 2.39.5